Project

General

Profile

Bug #249

hindrance compare crash

Added by Tony Ciavarella over 6 years ago. Updated over 6 years ago.

Status:
New
Priority:
Normal
Target version:
Start date:
02/12/2013
Due date:
% Done:

0%

Estimated time:

Description

Somehow it is possible to get a null hindrance or hindrance name which causes a crash. Here are some traces from google play:

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.squalllinesoftware.android.applications.sleepmeter.paid/com.squalllinesoftware.android.applications.sleepmeter.paid.GUI$Level04}: java.lang.NullPointerException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1872)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1893)
at android.app.ActivityThread.access$1500(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1054)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:150)
at android.app.ActivityThread.main(ActivityThread.java:4385)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:849)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at com.squalllinesoftware.android.applications.sleepmeter.ju.a(SleepHindrance.java:21)
at com.squalllinesoftware.android.applications.sleepmeter.ju.compare(SleepHindrance.java:17)
at java.util.TimSort.countRunAndMakeAscending(TimSort.java:320)
at java.util.TimSort.sort(TimSort.java:185)
at java.util.TimSort.sort(TimSort.java:169)
at java.util.Arrays.sort(Arrays.java:2090)
at com.squalllinesoftware.android.applications.sleepmeter.jt.a(SleepHindrance.java:89)
at com.squalllinesoftware.android.applications.sleepmeter.a.aq.<init>(HindranceStatistics.java:28)
at com.squalllinesoftware.android.applications.sleepmeter.ko.a(StatisticsElement.java:1116)
at com.squalllinesoftware.android.applications.sleepmeter.ko.<init>(StatisticsElement.java:93)
at com.squalllinesoftware.android.applications.sleepmeter.Level04GUI$StatisticsFragment.a(Level04GUI.java:518)
at com.squalllinesoftware.android.applications.sleepmeter.Level04GUI$ElementFragment.a(Level04GUI.java:339)
at android.support.v4.app.l.a(FragmentManager.java:825)
at android.support.v4.app.l.a(FragmentManager.java:1080)
at android.support.v4.app.l.a(FragmentManager.java:1062)
at android.support.v4.app.l.j(FragmentManager.java:1805)
at android.support.v4.app.FragmentActivity.onCreate(FragmentActivity.java:200)
at com.squalllinesoftware.android.applications.sleepmeter.Level04GUI.onCreate(Level04GUI.java:42)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1072)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1836)
... 11 more

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.squalllinesoftware.android.applications.sleepmeter.paid/com.squalllinesoftware.android.applications.sleepmeter.paid.GUI$Level13}: java.lang.NullPointerException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2205)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2240)
at android.app.ActivityThread.access$600(ActivityThread.java:139)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1262)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:4977)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at com.squalllinesoftware.android.applications.sleepmeter.ju.a(SleepHindrance.java:21)
at com.squalllinesoftware.android.applications.sleepmeter.ju.compare(SleepHindrance.java:17)
at java.util.TreeMap.find(TreeMap.java:277)
at java.util.TreeMap.putInternal(TreeMap.java:240)
at java.util.TreeMap.put(TreeMap.java:186)
at java.util.TreeSet.add(TreeSet.java:113)
at com.squalllinesoftware.android.applications.sleepmeter.jx.a(SleepHindrances.java:243)
at com.squalllinesoftware.android.applications.sleepmeter.hj.b(RecordElement.java:1918)
at com.squalllinesoftware.android.applications.sleepmeter.Level11GUI$ElementFragment.onCreate(Level11GUI.java:328)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:797)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1034)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1016)
at android.app.FragmentManagerImpl.dispatchCreate(FragmentManager.java:1763)
at android.app.Activity.onCreate(Activity.java:904)
at com.squalllinesoftware.android.applications.sleepmeter.Level11GUI.onCreate(Level11GUI.java:37)
at android.app.Activity.performCreate(Activity.java:4538)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1071)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2161)
... 11 more

History

#1

Updated by Tony Ciavarella over 6 years ago

  • Target version changed from 2.3.0 to 3.1.0

Also available in: Atom PDF