Fixed a null pointer exception when setting up the task rabbit control set

pull/14/head
Sam Bosley 13 years ago
parent 861e7077f0
commit 62c683fc85

@ -630,8 +630,10 @@ ViewPager.OnPageChangeListener, EditNoteActivity.UpdatesChangedListener {
String item = itemOrder[i]; String item = itemOrder[i];
if (item.equals(moreSectionTrigger)) { if (item.equals(moreSectionTrigger)) {
section = moreControls; section = moreControls;
if (taskRabbitControl != null) {
taskRabbitControl.getDisplayView().setVisibility(View.GONE); taskRabbitControl.getDisplayView().setVisibility(View.GONE);
section.addView(taskRabbitControl.getDisplayView()); section.addView(taskRabbitControl.getDisplayView());
}
} else { } else {
View control_set = null; View control_set = null;

Loading…
Cancel
Save