Skip to content

Commit

Permalink
Merge branch 'support-dynamically-setting-rdt-configs' of github.com:…
Browse files Browse the repository at this point in the history
…onaio/rdt-capture into support-dynamically-setting-rdt-configs
  • Loading branch information
vincent-karuri committed Nov 6, 2020
2 parents 5676c53 + ff98f23 commit 7fb377f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 7fb377f

Please sign in to comment.