04-12 21:56:53.955 12234-12234/edu.fsu.cs.mobile.mobileprogrammingproject E/AndroidRuntime: FATAL EXCEPTION: main
Process: edu.fsu.cs.mobile.mobileprogrammingproject, PID: 12234
java.lang.NullPointerException: Attempt to invoke virtual method 'int java.util.Date.compareTo(java.util.Date)' on a null object reference
at edu.fsu.cs.mobile.mobileprogrammingproject.ConversationFragment$5.compare(ConversationFragment.java:281)
at edu.fsu.cs.mobile.mobileprogrammingproject.ConversationFragment$5.compare(ConversationFragment.java:278)
at java.util.TimSort.binarySort(TimSort.java:261)
at java.util.TimSort.sort(TimSort.java:186)
at java.util.TimSort.sort(TimSort.java:169)
we put in some code to prevent crash in the compareto if something comes back null, although still not sure why this happens or how to exactly repeat it
Perhaps a concurrency issue?
04-12 21:56:53.955 12234-12234/edu.fsu.cs.mobile.mobileprogrammingproject E/AndroidRuntime: FATAL EXCEPTION: main Process: edu.fsu.cs.mobile.mobileprogrammingproject, PID: 12234 java.lang.NullPointerException: Attempt to invoke virtual method 'int java.util.Date.compareTo(java.util.Date)' on a null object reference at edu.fsu.cs.mobile.mobileprogrammingproject.ConversationFragment$5.compare(ConversationFragment.java:281) at edu.fsu.cs.mobile.mobileprogrammingproject.ConversationFragment$5.compare(ConversationFragment.java:278) at java.util.TimSort.binarySort(TimSort.java:261) at java.util.TimSort.sort(TimSort.java:186) at java.util.TimSort.sort(TimSort.java:169)