diff --git a/src/main/java/i5/las2peer/tools/L2pNodeLauncher.java b/src/main/java/i5/las2peer/tools/L2pNodeLauncher.java index c887624ad..fb8a123a0 100644 --- a/src/main/java/i5/las2peer/tools/L2pNodeLauncher.java +++ b/src/main/java/i5/las2peer/tools/L2pNodeLauncher.java @@ -432,10 +432,12 @@ public void unregisterCurrentAgent () { * @see #registerUserAgent * * @param serviceClass - * @param parameters + * @param parameters pass an empty string if you want to call a method without parameters * @throws L2pServiceException any exception during service method invocation */ - public Serializable invoke ( String serviceClass, String serviceMethod, String parameters) throws L2pServiceException { + public Serializable invoke (String serviceClass, String serviceMethod, String parameters) throws L2pServiceException { + if(parameters.equals("")) + return invoke(serviceClass, serviceMethod, new Serializable[0]); String[] split = parameters.trim().split("-"); return invoke(serviceClass, serviceMethod, (Serializable[]) split); }