We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7b7353 commit 0a1e7abCopy full SHA for 0a1e7ab
src/test/java/com/openfin/desktop/TestUtils.java
@@ -160,7 +160,7 @@ public void onOutgoingMessage(String message) {
160
161
162
public static void teardownDesktopConnection(DesktopConnection desktopConnection) throws Exception {
163
- if (desktopConnection.isConnected()) {
+ if (desktopConnection != null && desktopConnection.isConnected()) {
164
connectionClosing = true;
165
disconnectedLatch = new CountDownLatch(1);
166
new OpenFinRuntime(desktopConnection).exit();
0 commit comments