[udig-devel] RenderManagerAdapters NullPointerException
Jody Garnett
jgarnett at refractions.net
Thu Dec 13 23:19:07 PST 2007
Leigh Fitzgibbon wrote:
> I just ran into this error:
>
Thanks; can you tell me what was going on when you got this error? My
guess is you were closing the editor; and a change event fired off after
the editor was closed.
I created an task to track this report:
- http://jira.codehaus.org/browse/UDIG-1345
> Which is caused by the following code because the active editor is null:
>
Thanks: here is my patch; but I am not sure if I should commit; it may
only mask a real problem. Can you tell me more about what happened to
cause this error?
> public void notifyChanged( Notification msg ) {
> manager.checkState();
> switch( msg.getFeatureID(ViewportModel.class) ) {
> case RenderPackage.VIEWPORT_MODEL__BOUNDS: {
> MapEditor activeEditor =
> ApplicationGISInternal.getActiveEditor();
> if( activeEditor != null && activeEditor.isVisible() )
> refreshDirtyArea(msg);
> break;
> }
> case RenderPackage.VIEWPORT_MODEL__CRS: {
> manager.refresh(null);
> break;
> }
> }// switch
> }
Jody
More information about the udig-devel
mailing list