java.io.FileNotFoundException: R.drawable.pg1: open failed: ENOENT (No such file or directory) D/AndroidRuntime: Shutting down VM E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.mt_br.floatingactionbutton, PID: 13647 java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.graphics.Bitmap.compress(android.graphics.Bitmap$CompressFormat, int, java.io.OutputStream)' on a null object reference

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

    • java.io.FileNotFoundException: R.drawable.pg1: open failed: ENOENT (No such file or directory) D/AndroidRuntime: Shutting down VM E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.mt_br.floatingactionbutton, PID: 13647 java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.graphics.Bitmap.compress(android.graphics.Bitmap$CompressFormat, int, java.io.OutputStream)' on a null object reference at com.example.mt_br.floatingactionbutton.MainActivity$2.postPicture(MainActivity.java:112) at com.example.mt_br.floatingactionbutton.MainActivity$2.onClick(MainActivity.java:101)
    No Bugmate found.