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: Attempt to invoke virtual method 'java.lang.String java.lang.String.toLowerCase()' on a null object reference #44

Closed
mustafaberk1996 opened this issue Nov 30, 2022 · 4 comments

Comments

@mustafaberk1996
Copy link

Describe the bug
I am getting an error that is NullPointerException. It is in WorldData.java file where in this library.

To Reproduce

  1. just write World.init(applicationContext) in App file or an Activity file.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
Screen Shot 2022-11-30 at 12 24 49

Screen Shot 2022-11-30 at 12 24 59

Additional context
I hadn't been getting this error before but now I am getting. It is weird I also use this library in my another app and this library is working as well there.

@blongho
Copy link
Owner

blongho commented Dec 18, 2022

Hi @mustafaberk1996 ,

Which version of the library are you using?

@mustafaberk1996
Copy link
Author

I was using the latest version but I removed the library. Now I am using FlagKit library and there is no issue until now.

@IvLink-dev
Copy link

Hi @mustafaberk1996, I think you use proguard and forgot to add proguard rules
-keep class com.blongho.** {
;
}
-keep interface com.blongho.
*
-keeppackagenames com.blongho.country_data
-keepclassmembers class com.blongho.country_data.* {
public *;
}
-keep class com.blongho.country_data.R {
*;
}

@blongho blongho closed this as not planned Won't fix, can't repro, duplicate, stale Jun 13, 2023
@waheedkhan-dev
Copy link

Facing same issue on a release build with isMinifyEnabled = true and isShrinkResources = false
Also add the proguard rules mention above

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

4 participants