dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #25497
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 12667: Minor fix
------------------------------------------------------------
revno: 12667
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2013-10-15 12:43:45 +0200
message:
Minor fix
modified:
dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/utils/WebUtils.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-web/dhis-web-api/src/main/java/org/hisp/dhis/api/utils/WebUtils.java'
--- dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/utils/WebUtils.java 2013-10-01 13:32:53 +0000
+++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/utils/WebUtils.java 2013-10-15 10:43:45 +0000
@@ -130,6 +130,11 @@
@SuppressWarnings("unchecked")
public static void generateLinks( Object object, boolean deep )
{
+ if ( object == null )
+ {
+ return;
+ }
+
if ( IdentifiableObject.class.isAssignableFrom( object.getClass() ) )
{
IdentifiableObject identifiableObject = (IdentifiableObject) object;