Devlight / Devlight/NavigationTabBar

boolean android.graphics.Bitmap.isRecycled() null object reference error

Open
#144 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
4.9k
Forks
914
PR merge metrics
No merged PRs in 30d

Description

i had to Refactoring Androidx

actually, it's work before convert

first, Bitmap.createBitmap( .. ) in onDraw occured width, height > 0 error

so i had to fix code
if(mBitmap != null && !mBitmap.isRecycled()){
mBitmap.recycle();
...}

i can avoid this error but mPointerBitmap, mIconBitmap, mTitlesBitmap also occured same error

so i fixed it too

then new error come to me :(
boolean android.graphics.Bitmap.isRecycled() null object reference

mCanvas.drawBitmap(mPointerBitmap, 0.0F, 0.0F, mPointerPaint); << this code.

how can i fix it? plz help

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.