Permalink
Browse files

Fix NPE on using invalid uiLines

  • Loading branch information...
luk1337 authored and Zopieux committed Aug 14, 2017
1 parent c5a2669 commit fcf9439372304d9c4bfc4e52eaaa6a23708593b8
@@ -146,7 +146,8 @@ public void onStart() {
@Override
public void onSaveInstanceState(Bundle outState) {
// Backup top visible item for later restore
visiblePosition = uiLines.getFirstVisiblePosition();
if (uiLines != null)
visiblePosition = uiLines.getFirstVisiblePosition();
super.onSaveInstanceState(outState);
}

0 comments on commit fcf9439

Please sign in to comment.