Added check for null return from reading profile from WebApiConnection - Fixes #99.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:versionCode="120"
|
||||
android:versionName="4.1.6">
|
||||
android:versionCode="121"
|
||||
android:versionName="4.1.7">
|
||||
<!-- android:allowBackup="false" -->
|
||||
<uses-permission android:name="android.permission.BLUETOOTH" />
|
||||
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
|
||||
|
||||
@@ -198,6 +198,9 @@ public class AuthenticateActivity extends AppCompatActivity {
|
||||
} catch (JSONException e) {
|
||||
Log.e(TAG, "Error Parsing profileObj: " + e.getMessage());
|
||||
mUtil.showToast("Error Parsing profileObj - this should not happen!!!");
|
||||
} catch (NullPointerException e) {
|
||||
Log.e(TAG, "Error Retrieving User Information: " + e.getMessage());
|
||||
mUtil.showToast("Error Reading User Information - please try later.");
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user