StaggeredGridView icon indicating copy to clipboard operation
StaggeredGridView copied to clipboard

NullPointerException

Open Queatz opened this issue 12 years ago • 0 comments

I get this error when returning to my app after the phone has been off or the app has been in the background. It's definitely something to do with reinitialization.

01-06 15:58:46.303  28256-28256/com.example.example E/AndroidRuntime﹕ FATAL EXCEPTION: main
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.example/com.example.example.MainAcivity}: java.lang.NullPointerException
            . . .
     Caused by: java.lang.NullPointerException
            at android.os.Parcel.readIntArray(Parcel.java:784)
            at com.example.example.views.StaggeredGridView$SavedState.<init>(StaggeredGridView.java:2108)
            at com.example.example.views.StaggeredGridView$SavedState.<init>(StaggeredGridView.java:2094)
            at com.example.example.views.StaggeredGridView$SavedState$1.createFromParcel(StaggeredGridView.java:2132)
            at com.example.example.views.StaggeredGridView$SavedState$1.createFromParcel(StaggeredGridView.java:2130)
            at android.os.Parcel.readParcelable(Parcel.java:2062)
            at android.os.Parcel.readValue(Parcel.java:1971)
            . . .

Queatz avatar Jan 07 '14 00:01 Queatz