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

Nextcloud Dev settings crashed #4955

Closed
daywalk3r666 opened this issue Dec 6, 2019 · 3 comments
Closed

Nextcloud Dev settings crashed #4955

daywalk3r666 opened this issue Dec 6, 2019 · 3 comments

Comments

@daywalk3r666
Copy link

daywalk3r666 commented Dec 6, 2019

Actual behaviour

  • when i try to open the settings the app crash

Expected behaviour

Steps to reproduce

  1. open the app
  2. go into settings

Environment data

Android version: 9

Device model: Samsung j5 2016

Stock or customized system: LineageOS 16

Nextcloud app version: com.nextcloud.android.beta
Version: 20191206

Nextcloud server version:

Logs

Web server error log


************ CAUSE OF ERROR ************

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.nextcloud.android.beta/com.owncloud.android.ui.activity.SettingsActivity}: java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2951)
 at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3086)
 at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
 at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
 at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
 at android.os.Handler.dispatchMessage(Handler.java:106)
 at android.os.Looper.loop(Looper.java:193)
 at android.app.ActivityThread.main(ActivityThread.java:6718)
 at java.lang.reflect.Method.invoke(Native Method)
 at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Caused by: java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
 at android.app.SharedPreferencesImpl.getString(SharedPreferencesImpl.java:283)
 at android.preference.Preference.getPersistedString(Preference.java:1650)
 at android.preference.ListPreference.onSetInitialValue(ListPreference.java:295)
 at android.preference.Preference.dispatchSetInitialValue(Preference.java:1560)
 at android.preference.Preference.onAttachedToHierarchy(Preference.java:1328)
 at android.preference.PreferenceGroup.addPreference(PreferenceGroup.java:163)
 at android.preference.PreferenceGroup.addItemFromInflater(PreferenceGroup.java:105)
 at android.preference.PreferenceGroup.addItemFromInflater(PreferenceGroup.java:42)
 at android.preference.GenericInflater.rInflate(GenericInflater.java:490)
 at android.preference.GenericInflater.rInflate(GenericInflater.java:495)
 at android.preference.GenericInflater.inflate(GenericInflater.java:327)
 at android.preference.GenericInflater.inflate(GenericInflater.java:264)
 at android.preference.PreferenceManager.inflateFromResource(PreferenceManager.java:324)
 at android.preference.PreferenceActivity.addPreferencesFromResource(PreferenceActivity.java:1549)
 at com.owncloud.android.ui.activity.SettingsActivity.onCreate(SettingsActivity.java:151)
 at android.app.Activity.performCreate(Activity.java:7144)
 at android.app.Activity.performCreate(Activity.java:7135)
 at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2931)
 ... 11 more

************ APP INFORMATION ************
ID: com.nextcloud.android.beta
Version: 20191206
Build flavor: versionDev

************ DEVICE INFORMATION ************
Brand: samsung
Device: j5xnlte
Model: SM-J510FN
Id: PQ3A.190801.002
Product: lineage_j5xnlte

************ FIRMWARE ************
SDK: 28
Release: 9
Incremental: eng.exodus.20191113.204659

Nextcloud log (data/nextcloud.log)

Insert your Nextcloud log here

NOTE: Be super sure to remove sensitive data like passwords, note that everybody can look here! You can use the Issue Template application to prefill some of the required information: https://apps.nextcloud.com/apps/issuetemplate

@AndyScherzinger
Copy link
Member

@tobiasKaminsky I guess this is related to the theme change from boolean to other data type.

Might have to reinstall

tobiasKaminsky added a commit that referenced this issue Dec 6, 2019
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
@tobiasKaminsky
Copy link
Member

No need to re-install, just a stupid mistake by me ;-)
See #4956

@daywalk3r666
Copy link
Author

the testbuild fix the crash

@AndyScherzinger AndyScherzinger added this to the Nextcloud App 3.10.0 milestone Dec 6, 2019
tobiasKaminsky added a commit that referenced this issue Dec 7, 2019
f9bd91b Merge pull request #4956 from nextcloud/fixScreenshot
d95351b Merge pull request #4953 from nextcloud/dependabot/gradle/io.gitlab.arturbosch.detekt-detekt-gradle-plugin-1.2.2
3ed9ce2 Merge pull request #4920 from nextcloud/theming_server_input
b01f719 fix #4955
01e5329 fix #4752
d8722b5 [tx-robot] updated from transifex
ed52ad5 daily dev 20191206
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants