No i have not,
    would a way be to do an if statement in my try section to see if it is
null and if so, print and statement that it is?

I have changed to  DataStore myShapeFile = new
ShapefileDataStore(file.toURL()) ; // streaking line through the words
toURL.


Cheers

Michael Bedward wrote:
> 
>>   Yes, i am trapping the null pointer becuase ive been getting one, here
>>
>> String[] myFeatureTypeNames = myDataStore.getTypeNames();
>>
> 
> OK, but have you checked to see if it is the datastore reference that
> is null or a null pointer problem during the call to the getTypeNames
> method ?
> 
> Michael
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Geotools-gt2-users mailing list
> Geotools-gt2-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Try-Catch-tp20549037p20551889.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to