Added check for null return from reading profile from WebApiConnection - Fixes #99.

This commit is contained in:
Graham Jones
2023-06-11 20:13:47 +01:00
parent 50b2e3ea83
commit 2f0671eec6
2 changed files with 5 additions and 2 deletions

View File

@@ -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 {