Nullpointerexception when used on Nexus4
t-animal opened this issue · 2 comments
Sorry, I have no time to investigate further. Here is a stacktrace. Someone else mentioned this on stackoverflow, too... Does not appear in the emulator.
04-28 01:10:15.335: E/AndroidRuntime(30182): FATAL EXCEPTION: main
04-28 01:10:15.335: E/AndroidRuntime(30182): Process: de.t_animal.journeyapp, PID: 30182
04-28 01:10:15.335: E/AndroidRuntime(30182): java.lang.NullPointerException
04-28 01:10:15.335: E/AndroidRuntime(30182): at android.text.Layout.getDesiredWidth(Layout.java:67)
04-28 01:10:15.335: E/AndroidRuntime(30182): at org.jraf.android.backport.switchwidget.Switch.makeLayout(Switch.java:350)
04-28 01:10:15.335: E/AndroidRuntime(30182): at org.jraf.android.backport.switchwidget.Switch.onMeasure(Switch.java:302)
04-28 01:10:15.335: E/AndroidRuntime(30182): at android.view.View.measure(View.java:16497)
04-28 01:10:15.335: E/AndroidRuntime(30182): at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:719)
04-28 01:10:15.335: E/AndroidRuntime(30182): at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:455)
04-28 01:10:15.335: E/AndroidRuntime(30182): at android.view.View.measure(View.java:16497)
04-28 01:10:15.335: E/AndroidRuntime(30182): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5125)
04-28 01:10:15.335: E/AndroidRuntime(30182): at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
04-28 01:10:15.335: E/AndroidRuntime(30182): at android.view.View.measure(View.java:16497)
04-28 01:10:15.335: E/AndroidRuntime(30182): at android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1451)
04-28 01:10:15.335: E/AndroidRuntime(30182): at android.view.View.measure(View.java:16497)
04-28 01:10:15.335: E/AndroidRuntime(30182): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5125)
04-28 01:10:15.335: E/AndroidRuntime(30182): at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
04-28 01:10:15.335: E/AndroidRuntime(30182): at android.view.View.measure(View.java:16497)
04-28 01:10:15.335: E/AndroidRuntime(30182): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5125)
04-28 01:10:15.335: E/AndroidRuntime(30182): at com.android.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:327)
04-28 01:10:15.335: E/AndroidRuntime(30182): at android.view.View.measure(View.java:16497)
04-28 01:10:15.335: E/AndroidRuntime(30182): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5125)
04-28 01:10:15.335: E/AndroidRuntime(30182): at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
04-28 01:10:15.335: E/AndroidRuntime(30182): at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2291)
04-28 01:10:15.335: E/AndroidRuntime(30182): at android.view.View.measure(View.java:16497)
04-28 01:10:15.335: E/AndroidRuntime(30182): at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:1916)
04-28 01:10:15.335: E/AndroidRuntime(30182): at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1113)
04-28 01:10:15.335: E/AndroidRuntime(30182): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1295)
04-28 01:10:15.335: E/AndroidRuntime(30182): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1000)
04-28 01:10:15.335: E/AndroidRuntime(30182): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5670)
04-28 01:10:15.335: E/AndroidRuntime(30182): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
04-28 01:10:15.335: E/AndroidRuntime(30182): at android.view.Choreographer.doCallbacks(Choreographer.java:574)
04-28 01:10:15.335: E/AndroidRuntime(30182): at android.view.Choreographer.doFrame(Choreographer.java:544)
04-28 01:10:15.335: E/AndroidRuntime(30182): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)
04-28 01:10:15.335: E/AndroidRuntime(30182): at android.os.Handler.handleCallback(Handler.java:733)
04-28 01:10:15.335: E/AndroidRuntime(30182): at android.os.Handler.dispatchMessage(Handler.java:95)
04-28 01:10:15.335: E/AndroidRuntime(30182): at android.os.Looper.loop(Looper.java:136)
04-28 01:10:15.335: E/AndroidRuntime(30182): at android.app.ActivityThread.main(ActivityThread.java:5017)
04-28 01:10:15.335: E/AndroidRuntime(30182): at java.lang.reflect.Method.invokeNative(Native Method)
04-28 01:10:15.335: E/AndroidRuntime(30182): at java.lang.reflect.Method.invoke(Method.java:515)
04-28 01:10:15.335: E/AndroidRuntime(30182): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
04-28 01:10:15.335: E/AndroidRuntime(30182): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
04-28 01:10:15.335: E/AndroidRuntime(30182): at dalvik.system.NativeStart.main(Native Method)
Did you create and use a theme as explained in the readme file?
Oh man, sorry. You're right, I didn't do that. I just assumed that it was a bug when it worked in the emulator (don't ask me o.O) and I read someone else had the same issue.