title: Injection of ManagedBean to another bean is failed
body: <p>I tried to inject a Managed Bean to another bean, but failed. That is the first bean:</p>
  
  <pre><code>@ManagedBean(name = "sucBean")
  @SessionScoped
  public class SucBean implements Serializable {
  
  private static final long serialVersionUID = 1L;
  
  private MapModel advancedModel;
  
  private MapModel advancedModel2;
  
  private Marker marker;
  
  private Suc suc;
  
  private List&lt;Suc&gt; sucDefteri;
  
  private List&lt;Suc&gt; searchResult;
  
  private Suc[] selectedSuc;
  
  private SucService sucService;
  
  private String aramaKriteri;
  
  private String arananKelime;
  
  private SucDataModel sucModel;
  
      // other getters/setters methods
  </code></pre>
  
  <p>When I run the web application, I'm getting the </p>
  
  <pre><code>Caused by: java.lang.NullPointerException
  at org.primefaces.component.chart.CartesianChart.getCategories(CartesianChart.java:32)
  at org.primefaces.component.chart.bar.BarChartRenderer.encodeData(BarChartRenderer.java:121)
  at org.primefaces.component.chart.bar.BarChartRenderer.encodeScript(BarChartRenderer.java:51)
  at org.primefaces.component.chart.bar.BarChartRenderer.encodeEnd(BarChartRenderer.java:36)
  at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:875)
  at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
  at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782)
  </code></pre>
  
  <p>The second bean is following:</p>
  
  <pre><code>@ManagedBean(name="chartBean")
  @SessionScoped
  public class ChartBean implements Serializable {
  
  /**
   * 
   */
  private static final long serialVersionUID = 1L;
  
  private CartesianChartModel categoryModel;
  
  @ManagedProperty("#{sucBean}")
  private SucBean sucBean;
  
  private int[] sucSayilari=new int[9];
  
  
  public ChartBean()
  {
      createCategoryModel();
  }
  </code></pre>