Attempt to invoke virtual method 'boolean java.lang.String.equalsIgnoreCase(java.lang.String)' on a null object reference
<p>Project is working well on <code>emulator x86 api 6.0</code>.  but not on device <code>htc m 6.0</code><br>
here is code  </p>

<pre><code>if (img_uri != null &amp;&amp; img_uri.equalsIgnoreCase("image")) {
    bitmap = BitmapFactory.decodeResource(getResources(), R.mipmap.gghh);
    img_input_d.setImageBitmap(bitmap);
}
</code></pre>