Skip to content

Commit 1152a0e

Browse files
committed
Merge pull request #15 from beaucollins/issue-14
Only hide footer if there's an instance
2 parents 0d82ef1 + df86999 commit 1152a0e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/org/wordpress/android/ui/notifications/NotificationsListFragment.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ public void addAll(List<Note> notes){
140140
if (notes.size() == 0) {
141141
// No more notes available
142142
mAllNotesLoaded = true;
143-
mProgressFooterView.setVisibility(View.GONE);
143+
if(mProgressFooterView != null)
144+
mProgressFooterView.setVisibility(View.GONE);
144145
} else {
145146
Iterator<Note> noteIterator = notes.iterator();
146147
while(noteIterator.hasNext()){

0 commit comments

Comments
 (0)