wip mifosx-195 maintainance and validation fixes

This commit is contained in:
John Woodlock
2013-04-18 14:49:14 +01:00
parent abc6e5a42a
commit 53b5e3c7be
@@ -201,7 +201,7 @@ public class Report extends AbstractPersistable<Long> {
baseDataValidator.reset().parameter("reportSubType")
.value(this.reportSubType).notExceedingLengthOf(20);
if (this.reportType.equals("Chart")) {
if (this.reportType != null && this.reportType.equals("Chart")) {
baseDataValidator
.reset()
.parameter("reportSubType")