Issue 33 in israfil-mojo: NPE in case of JDK 1.3 usage

1 view
Skip to first unread message

codesite...@google.com

unread,
Feb 28, 2008, 6:23:11 AM2/28/08
to israfil-m...@googlegroups.com
Issue 33: NPE in case of JDK 1.3 usage
http://code.google.com/p/israfil-mojo/issues/detail?id=33

New issue report by chystoprudov:
Steps to reproduce:
1. Define JDK 1.3 at PATH variable
2. Execute application compile with flex2 plugin
3. See error message with NPE

Expected output: message that java.lang.CharSequence not found error.
Instead of this I see NPE message.

I'm using version 1.0 at OS Windows XP

The reason of this issue is
net.israfil.mojo.flex2.StreamedParameterExecutableWrapper:64
System.out.println("Failed to invoke " + m + " with parameters: " +
Arrays.asList(newArgs));

newArgs is null, so we have NPE here, to solve this issue and show correct
message to user is to add check or newArgs!=null

if(newArgs != null) {
System.out.println("Failed to invoke " + m + " with
parameters: " + Arrays.asList(newArgs));
} else {
System.out.println(t);
}


Issue attributes:
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

Reply all
Reply to author
Forward
0 new messages