-
Notifications
You must be signed in to change notification settings - Fork 986
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
Crash when initializing a map #1079
Comments
I can tell you that happened when a user did an update with an previous project without osmdroid |
Can you post the full stacktrace? I suspect this is an issue in |
second that we need the line number |
@spyhunter99 @cbalster Hi, thanks for your help. Here is the Fabric stacktrace :
|
Hi, If you need more information please do not hesitate to tell me how can we help each other. Regards, |
Soonest I can look at it is Sunday, should be an easy fix
…On Fri, Jul 13, 2018, 4:28 AM Steven ***@***.***> wrote:
Hi,
If you need more information please do not hesitate to tell me how can we
help each other.
Regards,
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1079 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB4kGRX9nslkPLoFfit-GR_ZkRRO_yhAks5uGFpIgaJpZM4VDe5L>
.
|
hmm no idea why this blew up. i added some null checks to trap this in the future |
@spyhunter99 Thank you so much for your help. Did you plan to make a snapshot with that fix or do you have any release date for the v6.0.2 ? Regards |
It was cut Monday
…On Tue, Jul 17, 2018, 3:17 AM Steven ***@***.***> wrote:
@spyhunter99 <https://github.com/spyhunter99> Thank you so much for your
help. Did you plan to make a snapshot with that fix (and others) or do you
have any release date for the v6.0.2 ?
Regards
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1079 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB4kGZKY01sfgIn-qUVxtP47EbbbKARNks5uHY-SgaJpZM4VDe5L>
.
|
Issue Type
[X] Question
[X] Bug
Description and/or steps/code to reproduce the problem
I had a crash on a customer's phone on that line :
Configuration.getInstance().load(getApplicationContext(), PreferenceManager.getDefaultSharedPreferences(getApplicationContext()));
But it does work fine when I am testing on Galaxy S7, Nexus 5. Here is the Fabric's stacktrace :
Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{ ... }: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.startsWith(java.lang.String)' on a null object reference
I can see that the NPE happened in the
load()
method inDefaultConfigurationProvider.java
.In my project, this is the line where it crashs, located in the onCreate() of my Activity, before I inflate my map:
Configuration.getInstance().load(this, PreferenceManager.getDefaultSharedPreferences(this));
Environment
If it's a bug, version(s) of android this affects:
At least Sony Xperia Z3 (6.0.1) and One Plus 5 (8.1)
Version of osmdroid the issue relates to:
5.6.5
The text was updated successfully, but these errors were encountered: