Skip to content

Commit

Permalink
ui/bug getodk#159: NPE on accessing successor property value.
Browse files Browse the repository at this point in the history
* missed one nullcheck.
* resolves getodk#159.
  • Loading branch information
issa-tseng committed Jun 5, 2017
1 parent 5b1a7bf commit 9a17eb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/javascripts/control.js
Expand Up @@ -115,7 +115,7 @@

// SPECIAL CASE:
// update the followup question text from that value.
if ((properties.other != null) && (properties.other.value !== false))
if ((properties.other != null) && (properties.other.value != null) && (properties.other.value !== false))
$info.find('.controlSuccessorCondition span').text(properties.other.value.join(' or '));
};

Expand Down

0 comments on commit 9a17eb0

Please sign in to comment.