Skip to content

Commit

Permalink
Added check for null progressOverlay in PreviousEntriesFragment.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfpiv committed Apr 6, 2016
1 parent 78cc3ed commit 1c9d514
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ public class PreviousEntriesFragment extends Fragment implements SnackList.Updat
@Override
public void onSnackListUpdateComplete() {
adapter.notifyDataSetChanged();
progressOverlay.setVisibility(View.GONE);

if(progressOverlay != null){
progressOverlay.setVisibility(View.GONE);
}

// Show the help message if appropriate.
// That is, if we haven't already showed it for the current user this session and the
Expand All @@ -48,7 +51,9 @@ public void onSnackListUpdateComplete() {
@Override
public void onSnackListUpdateStart() {
Log.d(TAG, "onSnackListUpdateStart");
progressOverlay.setVisibility(View.VISIBLE);
if(progressOverlay != null){
progressOverlay.setVisibility(View.VISIBLE);
}
}

@Override
Expand Down

0 comments on commit 1c9d514

Please sign in to comment.