Skip to content

Commit cec0652

Browse files
committed
Fix possible NPE in test
It could happen if boltkit is not available.
1 parent c6ec3c2 commit cec0652

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

driver/src/test/java/org/neo4j/driver/v1/DriverCloseIT.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,10 @@ public void setUp() throws Exception
154154
@After
155155
public void tearDown() throws Exception
156156
{
157-
router.exitStatus();
157+
if ( router != null )
158+
{
159+
router.exitStatus();
160+
}
158161
}
159162

160163
@Override

0 commit comments

Comments
 (0)