From 60976b1c3efb08604c4c1172cf3ee6b548662ac8 Mon Sep 17 00:00:00 2001 From: Paulo Dias Date: Tue, 14 Jan 2025 15:36:41 +0000 Subject: [PATCH] plugins/remote-actions-extra: Fix potential null pointer. --- .../neptus/plugins/remoteactionsextra/TakeControlMonitor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins-dev/remote-actions-extra/src/java/pt/lsts/neptus/plugins/remoteactionsextra/TakeControlMonitor.java b/plugins-dev/remote-actions-extra/src/java/pt/lsts/neptus/plugins/remoteactionsextra/TakeControlMonitor.java index 41920d2acb..e3a160ded5 100644 --- a/plugins-dev/remote-actions-extra/src/java/pt/lsts/neptus/plugins/remoteactionsextra/TakeControlMonitor.java +++ b/plugins-dev/remote-actions-extra/src/java/pt/lsts/neptus/plugins/remoteactionsextra/TakeControlMonitor.java @@ -95,7 +95,7 @@ public void on(ConsoleEventMainSystemChange evt) { public void on(EntityState msg) { try { if (!msg.getSourceName().equals(parent.getMainVehicleId()) - || !msg.getEntityName().equals(entityName)) { + || !entityName.equals(msg.getEntityName())) { return; } } catch (Exception e) {