{"action":"created","issue":{"url":"https://api.github.com/repos/TonicArtos/StickyGridHeaders/issues/40","labels_url":"https://api.github.com/repos/TonicArtos/StickyGridHeaders/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/TonicArtos/StickyGridHeaders/issues/40/comments","events_url":"https://api.github.com/repos/TonicArtos/StickyGridHeaders/issues/40/events","html_url":"https://github.com/TonicArtos/StickyGridHeaders/issues/40","id":16717068,"number":40,"title":"ClassCastException","user":{"login":"pablojacobi","id":4356148,"avatar_url":"https://avatars.githubusercontent.com/u/4356148?v=3","gravatar_id":"","url":"https://api.github.com/users/pablojacobi","html_url":"https://github.com/pablojacobi","followers_url":"https://api.github.com/users/pablojacobi/followers","following_url":"https://api.github.com/users/pablojacobi/following{/other_user}","gists_url":"https://api.github.com/users/pablojacobi/gists{/gist_id}","starred_url":"https://api.github.com/users/pablojacobi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pablojacobi/subscriptions","organizations_url":"https://api.github.com/users/pablojacobi/orgs","repos_url":"https://api.github.com/users/pablojacobi/repos","events_url":"https://api.github.com/users/pablojacobi/events{/privacy}","received_events_url":"https://api.github.com/users/pablojacobi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/TonicArtos/StickyGridHeaders/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":36,"created_at":"2013-07-13T16:42:55Z","updated_at":"2015-03-17T10:34:55Z","closed_at":null,"body":"Hi!\r\n\r\nI have been using StickyGridHeaders for a month, and it works great, but randomly when I load the gridview I get an exception like this.\r\n\r\n0\t\tjava.lang.ClassCastException: android.widget.LinearLayout cannot be cast to com.tonicartos.widget.stickygridheaders.StickyGridHeadersBaseAdapterWrapper$FillerView\r\n1\tat\tcom.tonicartos.widget.stickygridheaders.StickyGridHeadersBaseAdapterWrapper.getFillerView(StickyGridHeadersBaseAdapterWrapper.java:261)\r\n2\tat\tcom.tonicartos.widget.stickygridheaders.StickyGridHeadersBaseAdapterWrapper.getView(StickyGridHeadersBaseAdapterWrapper.java:177)\r\n3\tat\tandroid.widget.AbsListView.obtainView(AbsListView.java:2597)\r\n4\tat\tandroid.widget.GridView.makeAndAddView(GridView.java:1344)\r\n5\tat\tandroid.widget.GridView.makeRow(GridView.java:344)\r\n6\tat\tandroid.widget.GridView.fillSpecific(GridView.java:546)\r\n7\tat\tandroid.widget.GridView.layoutChildren(GridView.java:1243)\r\n8\tat\tandroid.widget.AbsListView.onLayout(AbsListView.java:2431)\r\n9\tat\tandroid.view.View.layout(View.java:14482)\r\n10\tat\tandroid.view.ViewGroup.layout(ViewGroup.java:4469)\r\n11\tat\tandroid.widget.FrameLayout.onLayout(FrameLayout.java:448)\r\n12\tat\tandroid.view.View.layout(View.java:14482)\r\n13\tat\tandroid.view.ViewGroup.layout(ViewGroup.java:4469)\r\n14\tat\tandroid.widget.LinearLayout.setChildFrame(LinearLayout.java:1669)\r\n15\tat\tandroid.widget.LinearLayout.layoutVertical(LinearLayout.java:1527)\r\n16\tat\tandroid.widget.LinearLayout.onLayout(LinearLayout.java:1440)\r\n17\tat\tandroid.view.View.layout(View.java:14482)\r\n18\tat\tandroid.view.ViewGroup.layout(ViewGroup.java:4469)\r\n19\tat\tandroid.widget.RelativeLayout.onLayout(RelativeLayout.java:1021)\r\n20\tat\tandroid.view.View.layout(View.java:14482)\r\n21\tat\tandroid.view.ViewGroup.layout(ViewGroup.java:4469)\r\n22\tat\tandroid.widget.FrameLayout.onLayout(FrameLayout.java:448)\r\n23\tat\tandroid.view.View.layout(View.java:14482)\r\n24\tat\tandroid.view.ViewGroup.layout(ViewGroup.java:4469)\r\n25\tat\tandroid.widget.FrameLayout.onLayout(FrameLayout.java:448)\r\n26\tat\tandroid.view.View.layout(View.java:14482)\r\n27\tat\tandroid.view.ViewGroup.layout(ViewGroup.java:4469)\r\n28\tat\tandroid.widget.RelativeLayout.onLayout(RelativeLayout.java:1021)\r\n29\tat\tandroid.view.View.layout(View.java:14482)\r\n30\tat\tandroid.view.ViewGroup.layout(ViewGroup.java:4469)\r\n31\tat\tandroid.widget.FrameLayout.onLayout(FrameLayout.java:448)\r\n32\tat\tandroid.view.View.layout(View.java:14482)\r\n33\tat\tandroid.view.ViewGroup.layout(ViewGroup.java:4469)\r\n34\tat\tandroid.widget.FrameLayout.onLayout(FrameLayout.java:448)\r\n35\tat\tandroid.view.View.layout(View.java:14482)\r\n36\tat\tandroid.view.ViewGroup.layout(ViewGroup.java:4469)\r\n37\tat\tandroid.widget.LinearLayout.setChildFrame(LinearLayout.java:1669)\r\n38\tat\tandroid.widget.LinearLayout.layoutVertical(LinearLayout.java:1527)\r\n39\tat\tandroid.widget.LinearLayout.onLayout(LinearLayout.java:1440)\r\n40\tat\tandroid.view.View.layout(View.java:14482)\r\n41\tat\tandroid.view.ViewGroup.layout(ViewGroup.java:4469)\r\n42\tat\tandroid.widget.RelativeLayout.onLayout(RelativeLayout.java:1021)\r\n43\tat\tandroid.view.View.layout(View.java:14482)\r\n44\tat\tandroid.view.ViewGroup.layout(ViewGroup.java:4469)\r\n45\tat\tandroid.widget.FrameLayout.onLayout(FrameLayout.java:448)\r\n46\tat\tandroid.view.View.layout(View.java:14482)\r\n47\tat\tandroid.view.ViewGroup.layout(ViewGroup.java:4469)\r\n48\tat\tandroid.widget.LinearLayout.setChildFrame(LinearLayout.java:1669)\r\n49\tat\tandroid.widget.LinearLayout.layoutVertical(LinearLayout.java:1527)\r\n50\tat\tandroid.widget.LinearLayout.onLayout(LinearLayout.java:1440)\r\n51\tat\tandroid.view.View.layout(View.java:14482)\r\n52\tat\tandroid.view.ViewGroup.layout(ViewGroup.java:4469)\r\n53\tat\tandroid.widget.FrameLayout.onLayout(FrameLayout.java:448)\r\n54\tat\tandroid.view.View.layout(View.java:14482)\r\n55\tat\tandroid.view.ViewGroup.layout(ViewGroup.java:4469)\r\n56\tat\tandroid.view.ViewRootImpl.performLayout(ViewRootImpl.java:2147)\r\n57\tat\tandroid.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1966)\r\n58\tat\tandroid.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1179)\r\n59\tat\tandroid.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4861)\r\n60\tat\tandroid.view.Choreographer$CallbackRecord.run(Choreographer.java:749)\r\n61\tat\tandroid.view.Choreographer.doCallbacks(Choreographer.java:562)\r\n62\tat\tandroid.view.Choreographer.doFrame(Choreographer.java:532)\r\n63\tat\tandroid.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735)\r\n64\tat\tandroid.os.Handler.handleCallback(Handler.java:725)\r\n65\tat\tandroid.os.Handler.dispatchMessage(Handler.java:92)\r\n66\tat\tandroid.os.Looper.loop(Looper.java:137)\r\n67\tat\tandroid.app.ActivityThread.main(ActivityThread.java:5293)\r\n68\tat\tjava.lang.reflect.Method.invokeNative(Native Method)\r\n69\tat\tjava.lang.reflect.Method.invoke(Method.java:511)\r\n70\tat\tcom.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)\r\n71\tat\tcom.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)\r\n72\tat\tdalvik.system.NativeStart.main(Native Method)\r\n\r\n\r\nMay I'm doing something wrong, but is weird I cannot replicate this error easily, just happens.\r\n\r\nThanks in advance for any help!"},"comment":{"url":"https://api.github.com/repos/TonicArtos/StickyGridHeaders/issues/comments/82264130","html_url":"https://github.com/TonicArtos/StickyGridHeaders/issues/40#issuecomment-82264130","issue_url":"https://api.github.com/repos/TonicArtos/StickyGridHeaders/issues/40","id":82264130,"user":{"login":"marcohc","id":6806082,"avatar_url":"https://avatars.githubusercontent.com/u/6806082?v=3","gravatar_id":"","url":"https://api.github.com/users/marcohc","html_url":"https://github.com/marcohc","followers_url":"https://api.github.com/users/marcohc/followers","following_url":"https://api.github.com/users/marcohc/following{/other_user}","gists_url":"https://api.github.com/users/marcohc/gists{/gist_id}","starred_url":"https://api.github.com/users/marcohc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcohc/subscriptions","organizations_url":"https://api.github.com/users/marcohc/orgs","repos_url":"https://api.github.com/users/marcohc/repos","events_url":"https://api.github.com/users/marcohc/events{/privacy}","received_events_url":"https://api.github.com/users/marcohc/received_events","type":"User","site_admin":false},"created_at":"2015-03-17T10:34:55Z","updated_at":"2015-03-17T10:34:55Z","body":"I can't reproduce the CastException again, thanks a lot @anbarasu-seven!"}}