title: Getting nullpointer exception on orderlist in primefaces
body: <pre><code> Error Rendering View[test.xhtml]
                                   java.lang.NullPointerException
      at org.primefaces.component.orderlist.OrderListRenderer.encodeOptions(OrderListRenderer.java:149)
      at org.primefaces.component.orderlist.OrderListRenderer.encodeList(OrderListRenderer.java:108)
      at org.primefaces.component.orderlist.OrderListRenderer.encodeMarkup(OrderListRenderer.java:79)
      at org.primefaces.component.orderlist.OrderListRenderer.encodeEnd(OrderListRenderer.java:49)
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:519)
      at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:543)
      at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:315)
      at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:150)
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:519)
      at org.primefaces.renderkit.CoreRenderer.renderChild(CoreRenderer.java:60)
      at org.primefaces.renderkit.CoreRenderer.renderChildren(CoreRenderer.java:44)
      at org.primefaces.component.dialog.DialogRenderer.encodeContent(DialogRenderer.java:174)
      at org.primefaces.component.dialog.DialogRenderer.encodeMarkup(DialogRenderer.java:103)
      at org.primefaces.component.dialog.DialogRenderer.encodeEnd(DialogRenderer.java:41)
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:519)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:626)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:622)
      at org.primefaces.component.accordionpanel.AccordionPanelRenderer.encodeEnd(AccordionPanelRenderer.java:60)
  </code></pre>
  
  <p>@FacesConverter("contactConverter")
  public class ContactConverter implements Converter{</p>
  
  <pre><code>@Override
  public Object getAsObject(FacesContext arg0, UIComponent arg1, String arg2)
          throws ConverterException {
      // TODO Auto-generated method stub
      TestBean tb= new TestBean();
      tb.setName(arg2);
      return tb;
  }
  
  @Override
  public String getAsString(FacesContext arg0, UIComponent arg1, Object arg2)
          throws ConverterException {
      // TODO Auto-generated method stub
      return arg2.toString();
  }
  </code></pre>
  
  <p>I was working with primefaces orderlist example. But I am facing this null pointer exception. After googling i found that this issue is some thing related to conveter, but I am not sure.can anyone help me with the simple primeface orderlist with the converter.</p>