diff --git a/lib/src/main/java/edu/washington/cs/ubicomplab/rdt_reader/activities/ImageQualityActivity.java b/lib/src/main/java/edu/washington/cs/ubicomplab/rdt_reader/activities/ImageQualityActivity.java index 6646b1eb..9d25c71b 100644 --- a/lib/src/main/java/edu/washington/cs/ubicomplab/rdt_reader/activities/ImageQualityActivity.java +++ b/lib/src/main/java/edu/washington/cs/ubicomplab/rdt_reader/activities/ImageQualityActivity.java @@ -50,7 +50,10 @@ protected void onCreate(Bundle savedInstanceState) { try { // Extract config json obj - mImageQualityView.setRdtJsonConfig(new JSONObject(b.getString(RDT_JSON_CONFIG))); + String rdtConfig = b.getString(RDT_JSON_CONFIG, null); + if (rdtConfig != null) { + mImageQualityView.setRdtJsonConfig(new JSONObject(rdtConfig)); + } } catch (JSONException e) { e.printStackTrace(); }