aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFil <fil.bergamo@riseup.net>2017-12-31 14:19:01 +0100
committerFil <fil.bergamo@riseup.net>2017-12-31 14:52:48 +0100
commit4c7fb54498efdf620a4004ed8ea22dc6b6717bdd (patch)
tree0904c535bd2c230a68ee64e492f85a8c7335bc80
parentbf2cc09307e404a8d6de0bfd77e1e8366e1a0497 (diff)
downloadRepWifiApp-4c7fb54498efdf620a4004ed8ea22dc6b6717bdd.tar.gz
RepWifiApp-4c7fb54498efdf620a4004ed8ea22dc6b6717bdd.tar.bz2
RepWifiApp-4c7fb54498efdf620a4004ed8ea22dc6b6717bdd.zip
Fix app crash at first startup
Fixed a NullPointerException that caused the app to crash when first started after network storage system changed.
-rw-r--r--app/AndroidManifest.xml4
-rw-r--r--app/src/fil/libre/repwifiapp/helpers/NetworkManager.java5
2 files changed, 7 insertions, 2 deletions
diff --git a/app/AndroidManifest.xml b/app/AndroidManifest.xml
index c20db8a..17195c6 100644
--- a/app/AndroidManifest.xml
+++ b/app/AndroidManifest.xml
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="fil.libre.repwifiapp"
- android:versionCode="4"
- android:versionName="0.6" >
+ android:versionCode="5"
+ android:versionName="0.6.1" >
<uses-sdk
android:minSdkVersion="17"
diff --git a/app/src/fil/libre/repwifiapp/helpers/NetworkManager.java b/app/src/fil/libre/repwifiapp/helpers/NetworkManager.java
index 96805a6..f78b4a5 100644
--- a/app/src/fil/libre/repwifiapp/helpers/NetworkManager.java
+++ b/app/src/fil/libre/repwifiapp/helpers/NetworkManager.java
@@ -266,6 +266,11 @@ public class NetworkManager {
public boolean updateStorageVersion() {
String[] lines = Utils.readFileLines(_knownNetworksFile);
+
+ if (lines == null){
+ return false;
+ }
+
if (lines.length == 0) {
return true;
}