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

NullPointerException #411

Open
HelloJokerWord opened this issue Jul 6, 2023 · 1 comment
Open

NullPointerException #411

HelloJokerWord opened this issue Jul 6, 2023 · 1 comment

Comments

@HelloJokerWord
Copy link

#4002 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

top.zibin.luban.Engine.compress(Engine.java:92)

class Engine
fun compress() line 87 tagBitmap 需要判空

@Miping-hero
Copy link

可以自己在外面先判空,再传入文件路径

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants