Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'float java.lang.Float.floatValue()' on a null object reference
<p>When I launch my app this problem shows. This is my Java code:</p>

<pre><code>protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(layout.activity_main);
    ImageView imageView = new ImageView(this);

    imageView.setBackgroundColor(Color.WHITE);

    SVG svg = SVGParser.getSVGFromResource(getResources(), raw.canel);`


    imageView.setImageDrawable(svg.createPictureDrawable());
   setContentView(imageView);
}
</code></pre>