Skip to content

Commit

Permalink
TRUNK-3567 Add Observation without Question Concept throws NullPointe…
Browse files Browse the repository at this point in the history
…rException

TRUNK-3567 Add Observation without Question Concept throws NullPointerException
  • Loading branch information
apien authored and wluyima committed May 3, 2013
1 parent 35cea87 commit 9340305
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -106,8 +106,7 @@ protected void onBind(HttpServletRequest request, Object command) throws Excepti
obs.setValueCoded(obs.getValueCodedName().getConcept());
}

// Set the complex obs value before we validate. See TRUNK-3353
if (obs.getConcept().isComplex()) {
if ( obs.getConcept() != null && obs.getConcept().isComplex()) {
InputStream complexDataInputStream = setComplexData(obs, request);
if (complexDataInputStream != null) {
complexDataInputStream.close();
Expand Down

0 comments on commit 9340305

Please sign in to comment.