ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1652767 - /ace/trunk/org.apache.ace.client.repository/src/org/apache/ace/client/repository/stateful/impl/StatefulTargetObjectImpl.java
Date Sun, 18 Jan 2015 14:51:20 GMT
Author: jawi
Date: Sun Jan 18 14:51:20 2015
New Revision: 1652767

URL: http://svn.apache.org/r1652767
Log:
ACE-509 - avoid NPE when no target object is available.


Modified:
    ace/trunk/org.apache.ace.client.repository/src/org/apache/ace/client/repository/stateful/impl/StatefulTargetObjectImpl.java

Modified: ace/trunk/org.apache.ace.client.repository/src/org/apache/ace/client/repository/stateful/impl/StatefulTargetObjectImpl.java
URL: http://svn.apache.org/viewvc/ace/trunk/org.apache.ace.client.repository/src/org/apache/ace/client/repository/stateful/impl/StatefulTargetObjectImpl.java?rev=1652767&r1=1652766&r2=1652767&view=diff
==============================================================================
--- ace/trunk/org.apache.ace.client.repository/src/org/apache/ace/client/repository/stateful/impl/StatefulTargetObjectImpl.java
(original)
+++ ace/trunk/org.apache.ace.client.repository/src/org/apache/ace/client/repository/stateful/impl/StatefulTargetObjectImpl.java
Sun Jan 18 14:51:20 2015
@@ -728,6 +728,10 @@ public class StatefulTargetObjectImpl im
                     return getStatusAttribute((String) key);
                 }
             }
+            // ACE-509 - make sure we've got a proper target object to work on...
+            if (m_targetObject == null) {
+                return null;
+            }
             String tag = m_targetObject.getTag((String)key);
             String attr = m_targetObject.getAttribute((String)key);
             if (tag == null) {



Mime
View raw message