> -----Original Message----- > From: Jason Pyeron > Sent: Thursday, April 14, 2011 21:29 > To: 'Struts Developers List' > Subject: Fixing NPE in package > org.apache.struts2.portlet.util.PortletUrlHelper need advise > <snip/> > > If we don't want the paramter to be removed then > result.put(entry.getKey(),new > String[]{""}) would be the best course of action. > > https://issues.apache.org/jira/browse/WW-3606 >
Turns out new String[]{} is the most acceptable option after testing the others https://issues.apache.org/jira/secure/attachment/12476411/WW-3606-null-parameter -NPE-v2.patch -Jason -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron PD Inc. http://www.pdinc.us - - Principal Consultant 10 West 24th Street #100 - - +1 (443) 269-1555 x333 Baltimore, Maryland 21218 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is copyright PD Inc, subject to license 20080407P00. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org