We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Npe can occur under certain circumstances when changing layouts and updating soft buttons at the same time.
NPE occurs on line 54 of SoftButtonReplaceOperation, supportsSoftButtonImages() returns null in the test case outlined in this issue.
SoftButtonReplaceOperation
supportsSoftButtonImages()
if (!supportsSoftButtonImages()) {
Soft buttons appear on screen, All taskMaster operations are functional
TaskMaster task stop working,
TemplateConfiguration templateConfiguration = new TemplateConfiguration().setTemplate(PredefinedLayout.GRAPHIC_WITH_TEXTBUTTONS.toString()); SoftButtonState softButtonState = new SoftButtonState("State1", "Text1", null); SoftButtonObject softButtonObject = new SoftButtonObject("Button1", softButtonState, new SoftButtonObject.OnEventListener() { @Override public void onPress(SoftButtonObject softButtonObject, OnButtonPress onButtonPress) { } @Override public void onEvent(SoftButtonObject softButtonObject, OnButtonEvent onButtonEvent) { } }); List<SoftButtonObject> softButtonObjectList = Arrays.asList(softButtonObject); sdlManager.getScreenManager().beginTransaction(); sdlManager.getScreenManager().setTextField1(textField1); sdlManager.getScreenManager().setTextField2(textField2); sdlManager.getScreenManager().setTextField2(textField3); sdlManager.getScreenManager().setTextField2(textField4); sdlManager.getScreenManager().setTitle(titleField); sdlManager.getScreenManager().setSoftButtonObjects(softButtonObjectList); sdlManager.getScreenManager().changeLayout(templateConfiguration, null); sdlManager.getScreenManager().commit(new CompletionListener() { @Override public void onComplete(boolean success) { } });
The text was updated successfully, but these errors were encountered:
This issue was fixed and resolved in the 5.3.1 Hotfix release. As part of PR #1773
Sorry, something went wrong.
No branches or pull requests
Bug Report
Npe can occur under certain circumstances when changing layouts and updating soft buttons at the same time.
NPE occurs on line 54 of
SoftButtonReplaceOperation
,supportsSoftButtonImages()
returns null in the test case outlined in this issue.Reproduction Steps
Expected Behavior
Soft buttons appear on screen, All taskMaster operations are functional
Observed Behavior
TaskMaster task stop working,
OS & Version Information
Test Case, Sample Code, and / or Example App
The text was updated successfully, but these errors were encountered: