Skip to content

Commit 224bce3

Browse files
committed
[Java] Restore belt and braces null check.
1 parent 4a33a5d commit 224bce3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sbe-tool/src/main/java/uk/co/real_logic/sbe/xml/XmlSchemaParser.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -364,10 +364,10 @@ public static String getAttributeValueOrNull(final Node elementNode, final Strin
364364
}
365365

366366
final NamedNodeMap attributes = elementNode.getAttributes();
367-
// if (null == attributes)
368-
// {
369-
// return null;
370-
// }
367+
if (null == attributes)
368+
{
369+
return null;
370+
}
371371

372372
final Node attrNode = attributes.getNamedItemNS(null, attrName);
373373
if (null == attrNode)

0 commit comments

Comments
 (0)