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

It crashes if the container has no background #35

Open
Cofyka opened this issue Oct 27, 2022 · 1 comment
Open

It crashes if the container has no background #35

Cofyka opened this issue Oct 27, 2022 · 1 comment

Comments

@Cofyka
Copy link

Cofyka commented Oct 27, 2022

If you don't set any background on FrameLayout, lupe.create will crash throwing
"java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setAlpha(int)' on a null object reference"

To Reproduce

  1. Go to your xml file
  2. In your framelayout container don't set any background
  3. try to create loupe

Expected behavior
It will crash with "java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setAlpha(int)' on a null object reference"

Environment

  • Library Version: 1.2.2
  • Device: HUAWEI ANE-LX1
  • OS: Android 9.0
@Cofyka
Copy link
Author

Cofyka commented Oct 27, 2022

But I would strongly advise people not to use this monstrosity of library.

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

1 participant