Send back identifier, if available.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 8 Apr 2011 14:51:36 +0000 (16:51 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 8 Apr 2011 14:51:36 +0000 (16:51 +0200)
src/main/java/net/pterodactylus/sone/fcp/FcpInterface.java

index 6145a36..8854347 100644 (file)
@@ -93,7 +93,7 @@ public class FcpInterface {
                                Response response = command.execute(parameters, data, AccessType.values()[accessType]);
                                sendReply(pluginReplySender, identifier, response);
                        } catch (FcpException fe1) {
-                               sendReply(pluginReplySender, null, new ErrorResponse("Error executing command: " + fe1.getMessage()));
+                               sendReply(pluginReplySender, identifier, new ErrorResponse("Error executing command: " + fe1.getMessage()));
                        }
                } catch (PluginNotFoundException pnfe1) {
                        logger.log(Level.WARNING, "Could not find destination plugin: " + pluginReplySender);