Browse Source

use same check as elseware

AndyScherzinger 8 years ago
parent
commit
1a9ce8d517
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/com/owncloud/android/ui/fragment/ExtendedListFragment.java

+ 1 - 1
src/com/owncloud/android/ui/fragment/ExtendedListFragment.java

@@ -207,7 +207,7 @@ public class ExtendedListFragment extends Fragment
 
         if (savedInstanceState != null) {
             int referencePosition = savedInstanceState.getInt(KEY_SAVED_LIST_POSITION);
-            if (mListView.equals(mCurrentListView)) {
+            if (mCurrentListView!= null && mCurrentListView.equals(mListView)) {
                 Log_OC.v(TAG, "Setting and centering around list position " + referencePosition);
                 mListView.setAndCenterSelection(referencePosition);
             } else {