Actually it did work prior to 1.5, it appears it has been fixed. You should give it a whirl! Thanks for the heads up on that.. Trying to make the migration from .NET to Java and some things that appeared like they would work apparently have changed some.
Thanks again! Chris On May 16, 1:02 am, Romain Guy <romain...@google.com> wrote: > It couldn't have been working before 1.5. The only way to safely > convert an object to a String without a NullPointerException is to use > a StringBuilder/StringBuffer or use a String concatenation: > > String imageFileName = "" + myFile.imageFileName; > > Or better yet, explicitly check for null :) > > On Fri, May 15, 2009 at 10:10 PM,chrispix<chris...@gmail.com> wrote: > > > if the value of imageFileName is null, why can I not change null into > > a string? It was working before 1.5. > > String imageFileName = myFile.imageFileName.toString(); > > > This gives me the a NullPointerException Error. > > -- > Romain Guy > Android framework engineer > romain...@android.com > > Note: please don't send private questions to me, as I don't have time > to provide private support. All such questions should be posted on > public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---