Issue #590 Fix rsc so it can be recycled

Change-Id: I3cddf5d67c2e5dfb52380529f703a0d9558d8916

Former-commit-id: fbd4b64be8 [formerly 798463a4cf] [formerly 78c1298085 [formerly cd52bfbeb593a4b1891f4df7f7ae73c7193504d0]]
Former-commit-id: 78c1298085
Former-commit-id: 7be5ef8528
This commit is contained in:
Nate Jensen 2012-05-11 10:04:36 -05:00
parent d2d6a4d1eb
commit 536d47dcf0

View file

@ -161,6 +161,7 @@ import com.vividsolutions.jts.geom.Envelope;
* 03/01/2008 chammack Initial Creation. * 03/01/2008 chammack Initial Creation.
* Aug 20, 2008 dglazesk Update for the ColorMap interface change * Aug 20, 2008 dglazesk Update for the ColorMap interface change
* Nov 23, 2011 mli set vector lineStyle * Nov 23, 2011 mli set vector lineStyle
* May 11, 2012 njensen Allow rsc to be recycled
* *
* </pre> * </pre>
* *
@ -369,7 +370,11 @@ public class GFEResource extends
* @return Returns the parm associated with the GFE Resource * @return Returns the parm associated with the GFE Resource
*/ */
public Parm getParm() { public Parm getParm() {
return this.parm; Parm retVal = null;
if (this.getStatus() != ResourceStatus.DISPOSED) {
retVal = this.parm;
}
return retVal;
} }
/* /*
@ -416,8 +421,6 @@ public class GFEResource extends
} }
clearVectorDisplays(); clearVectorDisplays();
this.parm = null;
} }
private void clearVectorDisplays() { private void clearVectorDisplays() {