NPE in 6.2.14, Picklist#isEscape() return null for boolean

UI Components for JSF
Post Reply
alfonx
Posts: 93
Joined: 15 Mar 2010, 18:50
Contact:

14 Jan 2019, 11:10

Hi


This leads to NPEs in PF 6.2.14: A null is returned as default, but return type is native boolean.

> public boolean isEscape() {
> return (java.lang.Boolean) getStateHelper().eval(PropertyKeys.escape, null);
> }

Code: Select all

java.lang.NullPointerException
	org.primefaces.component.picklist.PickList.isEscape(PickList.java:362)
	org.primefaces.component.picklist.PickListRenderer.encodeScript(PickListRenderer.java:146)
	org.primefaces.component.picklist.PickListRenderer.encodeEnd(PickListRenderer.java:60)
Greetings,
Steve

tandraschko
PrimeFaces Core Developer
Posts: 3545
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

14 Jan 2019, 11:11

Always Bet On Prime (+ Extensions)!

Thomas Andraschko
PrimeFaces Developer | PrimeFaces Extensions Founder
Apache OpenWebBeans PMC | Apache DeltaSpike PMC | Apache MyFaces PMC

Personal Blog: http://tandraschko.blogspot.de/

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 13 guests