I expected that TextureLoader would return null from .getTexture() if
the image URL was not found.  Instead, I get a NullPointerException.
Was it intended to be this way?  I found no other way to detect an error
loading the texture than to catch the exception, which I don't think is
a good way.  If any exception should be thrown, it would be an
IOException.

I suppose I could make sure the file is accessible by doing a
URL.openConnection(), but I think this is wasteful since the URL will be
opened later by TextureLoader.

Lee


J. Lee Dixon
Software Engineer
SAIC - Celebration, FL
[EMAIL PROTECTED]

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to