Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NullPointerException #37

Open
tianxiaogu opened this Issue Nov 4, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@tianxiaogu
Copy link

tianxiaogu commented Nov 4, 2017

Version: v4.2 from F-Droid

Found on an Android Studio emulator and can be reproduced on Nexus 5 (Android 6.0.1)

This exception happens when you click the bookmark button during loading a new chapter.

Reproduce:

Following instructions at

  1. Open http://wish.cs.ucdavis.edu/sata/sata-org.nv95.openmanga-ape-sata-running-time-30/vis-timeline.html
  2. Click Start button to adjust the view.
  3. Type 251 and click Select, click the highlighted event in the timeline. You will see a picture of the screenshot below.
    • The reproduce steps start at 251 and end at 256
    • Use Move Right or drag the timeline to move right.
// CRASH: org.nv95.openmanga (pid 14944) (elapsed nanos: 41896714105018)
// Short Msg: java.lang.NullPointerException
// Long Msg: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.Bitmap.recycle()' on a null object reference
// Build Label: Android/sdk_google_phone_x86/generic_x86:6.0/MASTER/4088240:userdebug/test-keys
// Build Changelist: 4088240
// Build Time: 1497047463000
// java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.Bitmap.recycle()' on a null object reference
// 	at org.nv95.openmanga.utils.StorageUtils.copyThumbnail(StorageUtils.java:205)
// 	at org.nv95.openmanga.providers.BookmarksProvider.add(BookmarksProvider.java:66)
// 	at org.nv95.openmanga.activities.ReadActivity2.onActionClick(ReadActivity2.java:322)
// 	at org.nv95.openmanga.components.ReaderMenu.onClick(ReaderMenu.java:253)
// 	at android.view.View.performClick(View.java:5198)
// 	at android.view.View$PerformClick.run(View.java:21147)
// 	at android.os.Handler.handleCallback(Handler.java:739)
// 	at android.os.Handler.dispatchMessage(Handler.java:95)
// 	at android.os.Looper.loop(Looper.java:148)
// 	at android.app.ActivityThread.main(ActivityThread.java:5417)
// 	at java.lang.reflect.Method.invoke(Native Method)
// 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
// 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
// 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.