fix possible NPE

This commit is contained in:
Doug MacEachern 2004-08-27 23:07:21 +00:00
parent ed77b95632
commit 6008f8bb79
1 changed files with 3 additions and 1 deletions

View File

@ -214,8 +214,10 @@ public class SigarInvoker {
typeGetter,
args);
} catch (Throwable t) {
String parms =
(args == null) ? "" : Arrays.asList(args).toString();
String msg = "Failed to invoke " +
typeGetter.getName() + Arrays.asList(args) +
typeGetter.getName() + parms +
": " + t.getMessage();
throw new SigarException(msg);
}