ICEfaces
  1. ICEfaces
  2. ICE-8585

DOMUtils.isWhitespaceText is not null safe

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.2
    • Component/s: Bridge, Framework
    • Labels:
      None
    • Environment:
      Weblogic 12.1.1, Liferay 5.2, Portletbridge, JSF2, Icefaces 3.1

      Description


      After hotdeployment in Weblogic, Liferay Portlets are not working proper, since Icefaces throws a Nullpointer-Exception.

      The method org.icefaces.impl.util.DOMUtils.isWhitespaceText must check for null values to be null safe and to prevent this error!

      <20.09.2012 09:25 Uhr MESZ> <Error> <javax.enterprise.resource.webcontainer.jsf.application> <BEA-000000> <Error Rendering View[/suchergebnis.xhtml]
      java.lang.NullPointerException
              at org.icefaces.impl.util.DOMUtils.isWhitespaceText(DOMUtils.java:394)
              at org.icefaces.impl.util.DOMUtils.printNode(DOMUtils.java:351)
              at org.icefaces.impl.util.DOMUtils.printNode(DOMUtils.java:355)
              at org.icefaces.impl.util.DOMUtils.printNode(DOMUtils.java:355)
              at org.icefaces.impl.util.DOMUtils.printNode(DOMUtils.java:355)
              Truncated. see log file for complete stacktrace
      >

        Activity

        Hide
        Deryk Sinotte added a comment - - edited

        Resolving as fixed. Added check for null value of text nodes when evaluating whitespace.

        Show
        Deryk Sinotte added a comment - - edited Resolving as fixed. Added check for null value of text nodes when evaluating whitespace.

          People

          • Assignee:
            Deryk Sinotte
            Reporter:
            Migration
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: