Skip to content

Commit 9340305

Browse files
apienwluyima
authored andcommittedMay 3, 2013
TRUNK-3567 Add Observation without Question Concept throws NullPointerException
TRUNK-3567 Add Observation without Question Concept throws NullPointerException
1 parent 35cea87 commit 9340305

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎web/src/main/java/org/openmrs/web/controller/observation/ObsFormController.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ protected void onBind(HttpServletRequest request, Object command) throws Excepti
106106
obs.setValueCoded(obs.getValueCodedName().getConcept());
107107
}
108108

109-
// Set the complex obs value before we validate. See TRUNK-3353
110-
if (obs.getConcept().isComplex()) {
109+
if ( obs.getConcept() != null && obs.getConcept().isComplex()) {
111110
InputStream complexDataInputStream = setComplexData(obs, request);
112111
if (complexDataInputStream != null) {
113112
complexDataInputStream.close();

0 commit comments

Comments
 (0)
Please sign in to comment.