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

have a NullPointerException problem #4

Open
ldzSpace opened this issue May 31, 2017 · 1 comment
Open

have a NullPointerException problem #4

ldzSpace opened this issue May 31, 2017 · 1 comment

Comments

@ldzSpace
Copy link

java.lang.NullPointerException: Attempt to invoke interface method 'int java.lang.CharSequence.length()' on a null object reference
05-31 19:03:13.214 15408-15408/com.upay.cleanup_assistant W/System.err: at android.text.StaticLayout.(StaticLayout.java:49)
05-31 19:03:13.214 15408-15408/com.upay.cleanup_assistant W/System.err: at android.support.v7.widget.SwitchCompat.makeLayout(SwitchCompat.java:864)
05-31 19:03:13.214 15408-15408/com.upay.cleanup_assistant W/System.err: at android.support.v7.widget.SwitchCompat.onMeasure(SwitchCompat.java:783)
05-31 19:03:13.214 15408-15408/com.upay.cleanup_assistant W/System.err: at android.view.View.measure(View.java:17547)
05-31 19:03:13.214 15408-15408/com.upay.cleanup_assistant W/System.err: at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)
05-31 19:03:13.214 15408-15408/com.upay.cleanup_assistant W/System.err: at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)
05-31 19:03:13.214 15408-15408/com.upay.cleanup_assistant W/System.err: at android.widget.LinearLayout.measureVertical(LinearLayout.java:722)
05-31 19:03:13.214 15408-15408/com.upay.cleanup_assistant W/System.err: at android.widget.LinearLayout.onMeasure(LinearLayout.java:613)

@yongjhih
Copy link
Owner

Did you try the official solution?
android.support.v7.preference.SwitchPreferenceCompat

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