[android-developers] NullPointerException in java.io.File.fixSlashes?

2011-06-05 Thread Derek
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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] NullPointerException in java.io.File.fixSlashes?

2011-06-05 Thread Mark Murphy
Well, line 234 of File.java is not in the fixSlashes() 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 cram.de...@gmail.com 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 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 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/commonsguy
http://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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] NullPointerException in java.io.File.fixSlashes?

2011-06-05 Thread Kostya Vasilyev
I've seen this crash in development, caused by new File(null).

Perhaps you could check how your code comes up with the path fed into the
constructor?
-- Kostya
2011/6/5 Mark Murphy mmur...@commonsware.com

 Well, line 234 of File.java is not in the fixSlashes() 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 cram.de...@gmail.com 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 android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  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/commonsguy
 http://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 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en