]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/backup/ConfigReader.java
fix crash when restoring configuration backup
[mobile-ledger.git] / app / src / main / java / net / ktnx / mobileledger / backup / ConfigReader.java
index 7959da518efc0c48f057f652392f625366c75ce7..187eb9b7849df70c2a8d3c1c234069a4a4c36dfa 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright © 2021 Damyan Ivanov.
+ * Copyright © 2022 Damyan Ivanov.
  * This file is part of MoLe.
  * MoLe is free software: you can distribute it and/or modify it
  * under the term of the GNU General Public License as published by
@@ -45,7 +45,7 @@ public class ConfigReader extends ConfigIO {
     }
     @Override
     protected void initStream() {
-        RawConfigReader r = new RawConfigReader(new FileInputStream(pfd.getFileDescriptor()));
+        r = new RawConfigReader(new FileInputStream(pfd.getFileDescriptor()));
     }
     @Override
     protected void processStream() throws IOException {