Randy424 / MobileProgrammingProject1

Mobile Programming Group Project "StudyBuddy" Prototype social media app supporting student connection and productivity.
0 stars 0 forks source link

Had a crash after sending a message, ,see error message below, not sure how to reproduce #38

Open fsublue22 opened 6 years ago

fsublue22 commented 6 years ago

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)

fsublue22 commented 6 years ago

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