Skip to content

Commit 0a1e7ab

Browse files
committed
ADAP-102: fixed teardownDesktopConnection
1 parent e7b7353 commit 0a1e7ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/com/openfin/desktop/TestUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public void onOutgoingMessage(String message) {
160160

161161

162162
public static void teardownDesktopConnection(DesktopConnection desktopConnection) throws Exception {
163-
if (desktopConnection.isConnected()) {
163+
if (desktopConnection != null && desktopConnection.isConnected()) {
164164
connectionClosing = true;
165165
disconnectedLatch = new CountDownLatch(1);
166166
new OpenFinRuntime(desktopConnection).exit();

0 commit comments

Comments
 (0)