空值问题

报错的代码:

java.lang.NullPointerException
        at com.sun.facelets.util.FastWriter.write(FastWriter.java:77)
        at com.sun.facelets.StateWriter.write(StateWriter.java:116)
        at com.sun.faces.renderkit.html_basic.HtmlResponseWriter.write(HtmlRespo
nseWriter.java:524)
        at com.sun.faces.renderkit.html_basic.MenuRenderer.renderOption(MenuRend
erer.java:561)
        at com.sun.faces.renderkit.html_basic.MenuRenderer.renderOptions(MenuRen
derer.java:739)
        at com.sun.faces.renderkit.html_basic.MenuRenderer.renderSelect(MenuRend
erer.java:794)
        at com.sun.faces.renderkit.html_basic.MenuRenderer.encodeEnd(MenuRendere
r.java:279)
        at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:
850)

 报错的原因是SelectItem里有itemValue或itemLable为空
请检查<f:selectItems>,<f:selectItem>的value属性内容是否有空指针

参见:
http://forum.java.sun.com/thread.jspa?threadID=5305544&tstart=0

你可能感兴趣的:(java,thread,html,F#,sun)