dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #22244
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 10666: Null check
------------------------------------------------------------
revno: 10666
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2013-04-22 17:25:38 +0200
message:
Null check
modified:
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/validation/DefaultValidationRuleService.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/validation/DefaultValidationRuleService.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/validation/DefaultValidationRuleService.java 2013-04-22 15:12:36 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/validation/DefaultValidationRuleService.java 2013-04-22 15:25:38 +0000
@@ -292,7 +292,7 @@
{
violation = ( leftSide != null && rightSide == null ) || ( leftSide == null && rightSide != null );
}
- else
+ else if ( leftSide != null && rightSide != null )
{
violation = !expressionIsTrue( leftSide, operator, rightSide );
}