[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [hibachi-dev] Patch for NPE
|
FYI, I posted the patch I made for this NullPointerException along with
details on my blog:
http://todd.wallentine.com/blog/?p=219
I also posted another patch on my blog:
http://todd.wallentine.com/blog/?p=221
That patch is to allow parameters to be shown as children of
sub-programs in the outline view.
Unless told otherwise, any patches I make will be posted to my blog and
I will email this list about them.
Comments, questions, and suggestions welcome,
todd
Todd Wallentine wrote:
I was running across a NullPointerException while running Hibachi and
thought I would submit the attached patch. It just tests that the
project variable is not-null before testing that it is open and that it
is an Ada project. I also included a comment (feel free to get rid of
it - it is a pretty obvious statement to be in a comment).
The problem that I was seeing was when I created a new run configuration
(Open Run Dialog, select Ada, select New) I was getting an error window
saying that there was an error ("An error occurred. See error log for
more details. Reason: java.lang.NullPointerException"). It then locked
up my Eclipse instance. The logfile had the following snippet related
to the NPE:
java.lang.NullPointerException
at
org.eclipse.hibachi.core.AdaProjectManager.getProjectData(AdaProjectManager.java:489)
at
org.eclipse.hibachi.core.AdaProjectManager.getProjectConfigurations(AdaProjectManager.java:1471)
at
org.eclipse.hibachi.launch.ui.LocalAdaLaunchMainTab.updateBuildConfigurationFromConfig(LocalAdaLaunchMainTab.java:577)
at
org.eclipse.hibachi.launch.ui.LocalAdaLaunchMainTab.initializeFrom(LocalAdaLaunchMainTab.java:232)
at
org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup.initializeFrom(AbstractLaunchConfigurationTabGroup.java:86)
Applying my patch fixed this issue (although I don't know what
side-effects it may have).
Hope that this patch is helpful,
todd
------------------------------------------------------------------------
_______________________________________________
hibachi-dev mailing list
hibachi-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/hibachi-dev