title: NullPointerException when setting data in constructor Java
body: <p>I'm trying to get property values as an Array in order to use them to display some data in a PDF file. When I try something like this all properties values are equal null.</p>
  
  <pre><code>Product p = new Product("989-ST", "Magazine Vogue");
  System.out.println(p.getData().length);
  for(String e : p.getData()){
  System.out.print(e + " ");
  }
  //--Output:: 2
  //--null     null
  </code></pre>
  
  <p>My Prdocut class is like:</p>
  
  <pre><code>Public class Product {
  private String sku;
  private String descripcion;
  
  
  public Product() {
  
  }
  
  public Product(String sku, String descripcion) {
      sku = this.sku;
      descripcion = this.descripcion;
  
  }
  
  public String getDescripcion() {
      return descripcion;
  }
  public void setDescripcion(String descripcion) {
      this.descripcion = descripcion;
  }
  public String getSku() {
      return sku;
  }
  public void setSku(String sku) {
      this.sku = sku;
  }
  
  public String[] getData() {
      String[] data = { this.descripcion, this.sku };
      return data;
  }
  }
  </code></pre>
  
  <p>Am I missing something? Because when I set the property values using setters I can get the expected values:</p>
  
  <pre><code>Product p = new Product();
  p.setSku("989-ST");
  p.setDescription("Magazine Vogue");
  System.out.println(p.getData().length);
  for(String e : p.getData()){
  System.out.print(e + " ");
  }
  //--Output:: 2
  //--989-ST     Magazine Vogue
  </code></pre>