jmxterm icon indicating copy to clipboard operation
jmxterm copied to clipboard

Empty string is passed as null

Open InTheCloudDan opened this issue 7 years ago • 0 comments

I'm not sure if this is a regression from: https://bugs.launchpad.net/jmxterm/+bug/319064

But I'm trying to pass in an empty string and it keeps getting converted to null:

$>run forceKeyspaceCleanup keyspace1 ""
#calling operation forceKeyspaceCleanup of mbean org.apache.cassandra.db:type=StorageService with params [keyspace1, null]
javax.management.RuntimeMBeanException: java.lang.NullPointerException
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrow(DefaultMBeanServerInterceptor.java:839)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrowMaybeMBeanException(DefaultMBeanServerInterceptor.java:852)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:821)

I also tried with double quotes around keyspace1 and it had the same output.

InTheCloudDan avatar Oct 05 '17 19:10 InTheCloudDan