You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to use a Static Icon via the MenuManager, a NullPointerException occurs with the following stack trace:
2019-10-08 16:57:10.121 16451-16451/io.livio.sdltestsuite.app1 E/AndroidRuntime: FATAL EXCEPTION: main
Process: io.livio.sdltestsuite.app1, PID: 16451
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.smartdevicelink.proxy.rpc.enums.FileType.equals(java.lang.Object)' on a null object reference
at com.smartdevicelink.managers.file.filetypes.SdlArtwork.setType(SdlArtwork.java:114)
at com.smartdevicelink.managers.file.filetypes.SdlArtwork.clone(SdlArtwork.java:167)
at com.smartdevicelink.managers.screen.menu.MenuCell.clone(MenuCell.java:336)
at com.smartdevicelink.managers.screen.menu.BaseMenuManager.cloneMenuCellsList(BaseMenuManager.java:1339)
at com.smartdevicelink.managers.screen.menu.BaseMenuManager.setMenuCells(BaseMenuManager.java:172)
at com.smartdevicelink.managers.screen.menu.MenuManager.setMenuCells(MenuManager.java:45)
at com.smartdevicelink.managers.screen.BaseScreenManager.setMenu(BaseScreenManager.java:429)
at com.smartdevicelink.managers.screen.ScreenManager.setMenu(ScreenManager.java:45)
final MenuCell A = new MenuCell("A", new SdlArtwork(StaticIconName.ACCEPT_CALL), null, new MenuSelectionListener() {
@Override
public void onTriggered(TriggerSource trigger) {
messageLogger.logInfo(TAG, "A Triggered", true);
}
});
sdlManager.getScreenManager().setMenu(Arrays.asList(A));
The text was updated successfully, but these errors were encountered:
Bug Report
When attempting to use a Static Icon via the MenuManager, a NullPointerException occurs with the following stack trace:
Related #848
Reproduction Steps
Expected Behavior
The provided static icon appears in the HMI next to the specified menu item
Observed Behavior
App crashes with NullPointerException
OS & Version Information
develop
branchdevelop
branch & Generic HMIdevelop
branchTest Case, Sample Code, and / or Example App
The text was updated successfully, but these errors were encountered: