Added check for null return from reading profile from WebApiConnection - Fixes #99.
This commit is contained in:
@@ -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