KacerCZ commented on a change in pull request #2673:
URL: https://github.com/apache/netbeans/pull/2673#discussion_r559130512



##########
File path: php/php.dbgp/src/org/netbeans/modules/php/dbgp/packets/Property.java
##########
@@ -64,12 +66,10 @@ public String getName() {
     }
 
     public void setName(String value) {
-        Node node = getNode().getAttributes().getNamedItem(NAME);
-        if (node == null) {
-            node = getNode().getOwnerDocument().createAttribute(NAME);
-            getNode().appendChild(node);
+        if (getNode() instanceof Element) {

Review comment:
       If I `node` is not `Element` then also `getName()` will not work and it 
will return `null`.
   So no effect in this case is OK.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to