Closed cypressious closed 11 years ago
When trying to scroll an AsyncListView without adapter but with Loader you get the following exception.
06-18 17:17:31.852: E/AndroidRuntime(7318): java.lang.NullPointerException 06-18 17:17:31.852: E/AndroidRuntime(7318): at org.lucasr.smoothie.ItemManager.updateItems(ItemManager.java:107) 06-18 17:17:31.852: E/AndroidRuntime(7318): at org.lucasr.smoothie.ItemManager.access$8(ItemManager.java:83) 06-18 17:17:31.852: E/AndroidRuntime(7318): at org.lucasr.smoothie.ItemManager$ItemsListHandler.handleMessage(ItemManager.java:256)
You can fix it by adding a null check in ItemManager's updateItems().
When trying to scroll an AsyncListView without adapter but with Loader you get the following exception.
06-18 17:17:31.852: E/AndroidRuntime(7318): java.lang.NullPointerException 06-18 17:17:31.852: E/AndroidRuntime(7318): at org.lucasr.smoothie.ItemManager.updateItems(ItemManager.java:107) 06-18 17:17:31.852: E/AndroidRuntime(7318): at org.lucasr.smoothie.ItemManager.access$8(ItemManager.java:83) 06-18 17:17:31.852: E/AndroidRuntime(7318): at org.lucasr.smoothie.ItemManager$ItemsListHandler.handleMessage(ItemManager.java:256)
You can fix it by adding a null check in ItemManager's updateItems().