Fixed a potential null pointer in task list fragment

pull/14/head
Sam Bosley 12 years ago
parent 8a5c59db2e
commit ff4b4020ce

@ -291,6 +291,8 @@ public class TaskListFragment extends ListFragment implements OnScrollListener,
DependencyInjectionService.getInstance().inject(this);
super.onCreate(savedInstanceState);
extras = getArguments() != null ? getArguments().getBundle(TOKEN_EXTRAS) : null;
if (extras == null)
extras = new Bundle(); // Just need an empty one to prevent potential null pointers
}
/*

Loading…
Cancel
Save