Re: [JPP-Devel] Help identifying problem with PlugInContext.getLayerManager method...

2007-09-25 Thread Sunburned Surveyor
Paul, I didn't realize that I need to set the plug-in context in the execute() method and not in the initialize() method. I will make that change. I wonder why I wasn't getting a null-pointer exception when my code executed. Is it because I am inside the event-dispatch thread? Thanks for the hel

Re: [JPP-Devel] Help identifying problem with PlugInContext.getLayerManager method...

2007-09-25 Thread Paul Austin
Hi Landon, you're using this.plugin.getPluginContext(), where did you set the plug-in context for that plug-in, if you set it in the initialize method then a whole bunch of things will be null. If you set it in execute then you can be fine. The other option is to get a new plugin context from the