Bug 182608 - ScriptConsoleManager.getScriptConsoles() doesn't return an array containing the correct values
Summary: ScriptConsoleManager.getScriptConsoles() doesn't return an array containing t...
Status: RESOLVED FIXED
Alias: None
Product: DLTK
Classification: Technology
Component: Common (show other bugs)
Version: 0.95   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Andrei Sobolev CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2007-04-16 14:48 EDT by Shelby Sanders CLA
Modified: 2008-05-26 02:50 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shelby Sanders CLA 2007-04-16 14:48:08 EDT
Build ID: M20070212-1330

More information:
I have patched this by replacing the body of ScriptConsoleManager.getScriptConsoles() with the following:
<pre>
        List<ScriptConsole> consoleList = new ArrayList<ScriptConsole>();

        for (IConsole console : manager.getConsoles()) {
            if (console instanceof ScriptConsole && console.getType().equals(consoleType)) {
                consoleList.add((ScriptConsole)console);
            }
        }

        return consoleList.toArray(new ScriptConsole[consoleList.size()]);
</pre>
Comment 1 Andrei Sobolev CLA 2007-05-02 04:02:16 EDT
Fixed
Comment 2 Andrey Platov CLA 2008-05-26 02:50:36 EDT
bulk change: fixed in 0.95