My app has about 20,000 boots a day, and every single crash like this one is reported to be occurring exclusively with such 2.3.4 Android version. Every single one, in spite such version represent less than 5% of the devices were my app is installed. No other Android version is affected at all. Thus the causal variable is clearly isolated and identified and it is not within my code.
I am not sure if those users are using specifically that 2.3.4_r1 code neither, but it doesn't matter anyway and investigating it further is pointless since I cannot change the user's underlying OS version. I will have to live with it, I guess. I googled such problem, find this thread, and just wanted to point out that this bug is still around. Bests, On Thu, Feb 19, 2015, 13:00 Sérgio Faria <[email protected]> wrote: > Well, either the stack trace is wrong or the source is not the one I > linked to (android-2.3.4_r1) or you're doing new File((String) null) > > Let's see: > > > 3 at java.io.File.<init>(File.java:139) > > 138. public File(String path) { > 139. init(path); > > 2 at java.io.File.init(File.java:189) > > 186. private void init(String dirtyPath) { > 187. // Cache the path and the absolute path. > 188. // We can't call isAbsolute() here (http://b/2486943). > 189. String cleanPath = fixSlashes(dirtyPath); > > 1 at java.io.File.fixSlashes(File.java:205) > 202. private String fixSlashes(String origPath) { > 203. // Remove duplicate adjacent slashes. > 204. boolean lastWasSlash = false; > 205. char[] newPath = origPath.toCharArray(); > > On Thursday, February 19, 2015 at 9:59:30 AM UTC, Fran wrote: > >> Except I am not doing it... >> >> On Wed, Feb 18, 2015, 15:26 Sérgio Faria <[email protected]> wrote: >> > Given the stack above, it seems you're doing new File(null) >>> >>> https://android.googlesource.com/platform/libcore/+/android- >>> 2.3.4_r1/luni/src/main/java/java/io/File.java >>> >>> 2015-02-18 11:45 GMT+00:00 Fran <[email protected]>: >>> > It seems this problem persists more than three years after. I am >>> > experiencing the same problem right now, all of them with Android 2.3.4 >>> > >>> > >>> > On Sunday, June 5, 2011 at 4:21:31 PM UTC+2, Derek wrote: >>> >> >>> >> Hi all, >>> >> >>> >> We get crash reports with the following error: >>> >> java.lang.NullPointerException >>> >> at java.io.File.fixSlashes(File.java:234) >>> >> >>> >> It appears on File file = new File("path/subfolder"); >>> >> on some devices only. >>> >> >>> >> We cannot reproduce it. Where could this problem from from? >>> >> >>> >> Cheers. >>> >> >>> >> >>> > -- >>> > You received this message because you are subscribed to the Google >>> > Groups "Android Developers" group. >>> >> > To post to this group, send email to [email protected] >> >> >>> > To unsubscribe from this group, send email to >>> > [email protected] >>> > For more options, visit this group at >>> > http://groups.google.com/group/android-developers?hl=en >>> > --- >>> > You received this message because you are subscribed to the Google >>> Groups >>> > "Android Developers" group. >>> > To unsubscribe from this group and stop receiving emails from it, send >>> an >>> > email to [email protected]. >>> > For more options, visit https://groups.google.com/d/optout. >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Android Developers" group. >>> >> To post to this group, send email to [email protected] >> >> >>> To unsubscribe from this group, send email to >>> [email protected] >>> For more options, visit this group at >>> http://groups.google.com/group/android-developers?hl=en >>> --- >>> You received this message because you are subscribed to a topic in the >>> Google Groups "Android Developers" group. >>> To unsubscribe from this topic, visit https://groups.google.com/d/to >>> pic/android-developers/b3XY_KvU7g4/unsubscribe. >>> To unsubscribe from this group and all its topics, send an email to >>> [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > --- > You received this message because you are subscribed to a topic in the > Google Groups "Android Developers" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/android-developers/b3XY_KvU7g4/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

