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] <javascript:>> 
> 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] <javascript:>>:
>> > 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] 
>> <javascript:>
>> > To unsubscribe from this group, send email to
>> > [email protected] <javascript:>
>> > 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] <javascript:>.
>> > 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] 
>> <javascript:>
>> To unsubscribe from this group, send email to
>> [email protected] <javascript:>
>> 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] <javascript:>.
>> 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.

Reply via email to