Derek,

The seconds of your three stack traces (lines 205 - 189 - 139) lines up with
this version of File.java:

http://www.google.com/codesearch/p?hl=ru#cZwlSNS7aEw/libcore/luni/src/main/java/java/io/File.java&q=File%20lang:java%20package:android&sa=N&cd=1&ct=rc

Line 205 is the fist time fixSlahes accesses the argument passed into the
constructor.



The 234 - 201 - 152 is the Froyo version, here it is in the repository:

http://android.git.kernel.org/?p=platform/dalvik.git;a=blob;f=libcore/luni/src/main/java/java/io/File.java;hb=refs/heads/froyo



The 267 - 131 version is from Eclair:

http://android.git.kernel.org/?p=platform/dalvik.git;a=blob;f=libcore/luni/src/main/java/java/io/File.java;hb=refs/heads/eclair#l267


Looks to me like a pretty strong case for your code doing new File(null)
somewhere...

-- Kostya


2011/6/6 Derek <[email protected]>

> There are hundreds reports in Crash section of Android Market. Line is
> not the same. Here they are:
>
> java.lang.NullPointerException
> at java.io.File.fixSlashes(File.java:234)
> at java.io.File.init(File.java:201)
> at java.io.File.<init>(File.java:152)
>
> java.lang.NullPointerException
> at java.io.File.fixSlashes(File.java:205)
> at java.io.File.init(File.java:189)
> at java.io.File.<init>(File.java:139)
>
> java.lang.NullPointerException:
>  at java.io.File.fixSlashes(File.java:267)
>  at java.io.File.<init>(File.java:131)
>
> We're going to try to pass new File(null) to see if it can be the
> problem.
>
>
>
>
>
>
> On Jun 5, 4:49 pm, Mark Murphy <[email protected]> wrote:
> > Well, line 234 of File.java is not in thefixSlashes() method in the
> > latest stuff in the repo, based on what Google Code Search is telling
> > me.
> >
> > What are the models of devices that are giving you this problem?
> >
> >
> >
> > On Sun, Jun 5, 2011 at 10:21 AM, Derek <[email protected]> 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
> >
> > --
> > Mark Murphy (a Commons Guy)http://commonsware.com|
> http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
> >
> > Android 3.0 Programming Books:http://commonsware.com/books
>
> --
> 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 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

Reply via email to