openmrs/openmrs-core — pull request #1222 by andreweskeclarke (2014-12-26 14:23:34+00:00)
Title: Avoid a null pointer exception when validating Stop Orders for DrugOrder...

...s without a Drug

It is valid to have a DrugOrder without a Drug, as long as there is a Concept. The logic on lines 184-192 addresses that case. However, line 179 was throwing NPE's when trying to stop a DrugOrder without a Drug.

See pull request #1220 in Master.