We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfefb6a commit 39715abCopy full SHA for 39715ab
android/app/src/main/java/betaflight/configurator/plugin/SocketPlugin.java
@@ -24,7 +24,8 @@ public class SocketPlugin extends Plugin {
24
@PluginMethod
25
public void connect(PluginCall call) {
26
String ip = call.getString("ip");
27
- int port = call.getInt("port");
+ // Use a default value (e.g., -1) to avoid NullPointerException if "port" is missing
28
+ int port = call.getInt("port", -1);
29
30
// Validate inputs
31
if (ip == null || ip.isEmpty()) {
0 commit comments