Hi, Yes, i am trapping the null pointer becuase ive been getting one, here
String[] myFeatureTypeNames = myDataStore.getTypeNames(); H i Luong, Are you trapping the null pointer exception because you've been getting one ? And if so, where ? E.g. if your data store is not being created properly then the code in your example will catch the exception when you try to use the null myDataStore reference. Obviously, in that case you won't have any feature type names. Michael -- View this message in context: http://www.nabble.com/Try-Catch-tp20549037p20551383.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 [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
