Skip to content

Commit 14d52e0

Browse files
committed
Added debug message to remove empty catch block.
1 parent 8e76419 commit 14d52e0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/frameworkium/tests/internal/BaseTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ public static void initialiseNewScreenshotCapture(Method testMethod) {
9898
String testID = "n/a";
9999
try {
100100
testID = testMethod.getName();
101-
} catch (NullPointerException e) {}
101+
} catch (NullPointerException e) {
102+
logger.debug("No test method defined.");
103+
}
102104
try {
103105
testID = testMethod.getAnnotation(Issue.class).value();
104106
} catch (NullPointerException e) {

0 commit comments

Comments
 (0)