Skip to content

Commit

Permalink
defect #2612043: Check if element is null before processing it
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan923 committed Oct 10, 2024
1 parent 76e07bf commit 8bb8316
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/microfocus/bdd/JunitReportReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ public Element next() {
}

private Element getElement(StartElement startElementEvent) {
if (null == startElementEvent) {
return null;
}

Element element = new Element();
try {
String elementName = getElementName(startElementEvent);
Expand Down

0 comments on commit 8bb8316

Please sign in to comment.