Skip to content

Commit 4e54f89

Browse files
committed
1. Put protection for a core dump I saw
1 parent ece8727 commit 4e54f89

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/android/BLECentralPlugin.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,9 @@ public void run() {
740740
// Default to call the failure callback unless we find something
741741
PluginResult result = new PluginResult(PluginResult.Status.NO_RESULT);
742742
result.setKeepCallback(true);
743-
callbackContext.sendPluginResult(result);
743+
744+
if (callbackContext!=null) // 5/6/17 - NVF Added this to avoid cores - not sure if it will cause other issues instead of figuring out why...
745+
callbackContext.sendPluginResult(result);
744746
}
745747

746748
private void listKnownDevices(CallbackContext callbackContext) {

0 commit comments

Comments
 (0)