java.lang.RuntimeException: Error receiving broadcast Intent { act=android.hardware.usb.action.USB_DEVICE_DETACHED flg=0x10 (has extras) } in com.woodenshark.prismatik.PrismApplication$2@42743160
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:778)
at android.os.Handler.handleCallback(Handler.java:730)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5493)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1209)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1025)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at com.woodenshark.prismatik.utils.UiUtils.getDisplayWidthPx(UiUtils.java:21)
at com.woodenshark.prismatik.ProfileManager.formatProfile(ProfileManager.java:45)
at com.woodenshark.prismatik.ProfileManager.getCurrentProfile(ProfileManager.java:24)
at com.woodenshark.prismatik.SettingsManager.getPreferences(SettingsManager.java:38)
at com.woodenshark.prismatik.SettingsManager.getPreferences(SettingsManager.java:33)
at com.woodenshark.prismatik.SettingsManager.getString(SettingsManager.java:62)
at com.woodenshark.prismatik.SettingsManager.getModeAsString(SettingsManager.java:79)
at com.woodenshark.prismatik.SettingsManager.getMode(SettingsManager.java:83)
at com.woodenshark.prismatik.SettingsUpdater.updateSettings(SettingsUpdater.java:17)
at com.woodenshark.prismatik.PrismApplication.updateSettings(PrismApplication.java:36)
at com.woodenshark.prismatik.PrismApplication$2.onReceive(PrismApplication.java:180)
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:768)
... 9 more