node-jmx icon indicating copy to clipboard operation
node-jmx copied to clipboard

Cannot pass null as param to Client.invoke

Open ivantv opened this issue 9 years ago • 1 comments

We are not able to pass null as param to invoke. A small fix is needed in javaJmx.js:

  function jsParams2JavaParams(params, signature) {
    var javaParams = [];
    signature.forEach(function(className) {
      var value = params.shift();
      if (value!= null && typeof value.getClass !== "function") { // Fix

ivantv avatar Feb 04 '16 17:02 ivantv

@ivantv thanks for reporting!

¿Could you make a PR for this and include at least one test for your use case?

zuazo avatar Feb 04 '16 21:02 zuazo