[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[udig-devel] [jira] Created: (UDIG-74) iterator method throws null pointer exception
|
Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/UDIG-74
Here is an overview of the issue:
---------------------------------------------------------------------
Key: UDIG-74
Summary: iterator method throws null pointer exception
Type: Bug
Status: Open
Priority: Major
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: uDIG
Components:
wms
Versions:
UDIG 0.5
Assignee: Jody Garnett
Reporter: Jesse Eichar
Created: Wed, 20 Oct 2004 2:25 PM
Updated: Wed, 20 Oct 2004 2:25 PM
Description:
iterator() method throws null pointer exception when it is called but the getCapabilites request is not complete. It should check if it is done, if not then it should wait until it is done, then process.
The line causing the exception is:
for (int i = 0; i < capabilities.getLayers().length; i++)
It occurs when there is a map already created with WMSLayers.
When the program is started and Local Registry/Catalog has not been loaded. When the map is opened LayerManager calls iterator, but the getCapabilites thread is not done... so exception. If it waited for a second woke, checked, then slept, woke, checked etc... the exception wouldn't be thrown. If it is determined that the getCapabilities() has failed, then return an empty iterator.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira