Bug 174425 - AssertionFailedException: null argument in BuildConsolePage
Summary: AssertionFailedException: null argument in BuildConsolePage
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 3.1.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 4.0   Edit
Assignee: Doug Schaefer CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
: 146830 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-02-16 06:35 EST by Wieant CLA
Modified: 2008-06-19 23:54 EDT (History)
2 users (show)

See Also:


Attachments
Patch proposal (977 bytes, patch)
2007-02-16 06:37 EST, Wieant CLA
bjorn.freeman-benson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wieant CLA 2007-02-16 06:35:31 EST
Below a snippet from a customers logfile, I wasn't able to exactly reproduce
this exception, but apparantly it is somehow possible that when the
BuildConsolePage.setInitialSelection() method is called the getConsole().getConsoleManager().getLastBuiltProject() returns null.

 ...
        at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
        at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
        at org.eclipse.core.launcher.Main.run(Main.java:977)
        at org.eclipse.core.launcher.Main.main(Main.java:952)
Caused by: org.eclipse.jface.util.Assert$AssertionFailedException: null argument;
        at org.eclipse.jface.util.Assert.isNotNull(Assert.java:150)
        at org.eclipse.jface.util.Assert.isNotNull(Assert.java:126)
        at org.eclipse.jface.viewers.StructuredSelection.<init>(StructuredSelection.java:66)
        at org.eclipse.cdt.internal.ui.buildconsole.BuildConsolePage.setInitialSelection(BuildConsolePage.java:353)
        at org.eclipse.cdt.internal.ui.buildconsole.BuildConsolePage.createControl(BuildConsolePage.java:203)
        at org.eclipse.ui.internal.console.ConsoleView.doCreatePage(ConsoleView.java:276)
        at org.eclipse.ui.part.PageBookView.createPage(PageBookView.java:399)
        at org.eclipse.ui.part.PageBookView.partActivated(PageBookView.java:743)
        at org.eclipse.ui.internal.console.ConsoleView$1.run(ConsoleView.java:347)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
        ... 20 more
Comment 1 Wieant CLA 2007-02-16 06:37:20 EST
Created attachment 59127 [details]
Patch proposal
Comment 2 Doug Schaefer CLA 2007-05-16 15:56:12 EDT
Patch applied. Thanks!
Comment 3 Markus Schorn CLA 2007-06-19 10:32:45 EDT
*** Bug 146830 has been marked as a duplicate of this bug. ***
Comment 4 Doug Schaefer CLA 2008-06-03 14:41:56 EDT
assigning
Comment 5 Doug Schaefer CLA 2008-06-03 14:42:15 EDT
done