Hi,
i added the touri.tourl code which does do the exception stuff as you
know. Although, i've never really done debugging personally, i don't know
why, and when i do get errors, i just try the best i can to solve it. But
i'll definitely have a shot at it, Knowledge Is Power Right??
Many thank
> 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?
>
since you're using netbeans why not step through your code in the
debugger then you will have ultimate knowledge :-)
Michael
--
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
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 p
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 yo
Hi,
in the 09shaplab tutorial code line String typeName =
shapefile.getTypeNames()[0]; throws an exception so i created my own try
catch statment using
try {
// Create an array of string to store the feature types
String[] myFeatureTypeNames = myDataStore.getTypeNam