Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit 81adac6

Browse files
committed
Fix NPE when rotating screen. (Fix #50)
1 parent 62a3a68 commit 81adac6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/main/java/com/fox2code/mmm/repo/RepoUpdater.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ public int fetchIndex() {
3434
}
3535
try {
3636
if (!this.repoData.prepare()) {
37+
this.indexRaw = null;
38+
this.toUpdate = Collections.emptyList();
39+
this.toApply = Collections.emptySet();
3740
return 0;
3841
}
3942
this.indexRaw = Http.doHttpGet(this.repoData.url, false);

0 commit comments

Comments
 (0)