ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Becheanu, Daniel" <>
Subject RE: NullPointer bug IvyDE 2.0.0.beta1
Date Tue, 02 Dec 2008 17:46:54 GMT

There is a new NPE bug which happens if you migrate from old ivyDE to new ivyDE. This happens
with RAD7.5 eclipse 3.4

Also I put a patch in for it.


-----Original Message-----
From: Goldspink, Matt (IT) [] 
Sent: Monday, December 01, 2008 4:21 AM
Subject: NullPointer bug IvyDE 2.0.0.beta1


I hit the NullPointer issue this morning in Jira:

I took a quick look at the problem and it looks pretty straight forward to fix. Is it possible
to get this fix added before 2.0.0.beta1 goes live? I've copied my comment from the Jira below
for reference:

I hit this error this morning when starting up Eclipse with 2.0.0.beta1. I don't think the
statement: "When launching Eclipse, and if there are some failing resolve job" is correct
because the code in the

                        IvyClasspathContainerConfiguration.setConfStatus() method says:
            if (e != null) {
                setResolveStatus(new Status(IStatus.ERROR, IvyPlugin.ID, IStatus.ERROR, e
                        .getMessage(), e.getCause()));
            } else {
                setResolveStatus(Status.OK_STATUS); <!--- So it sets the status when its
which shows that this method is called everytime, not just when there is an error. I did a
bit of debugging and it looks like the line:
throws the null pointer and its because the call to getContainerDecoractor() is returning
null. The reason is because Eclipse hasn't yet initialized that part of the plugin because
none of the projects are expanded yet. Is it possible to just add a simple check to change
the above line to be:
           IvyClasspathContainerDecorator decorator = IvyPlugin.getDefault().getContainerDecorator();
           if (decorator != null) {

Matt Goldspink
Morgan Stanley | Technology
20 Cabot Square | Canary Wharf | Floor 01
London, E14 4QW
Phone: +44 20 7425-5501<>

NOTICE: If received in error, please destroy and notify sender. Sender does not intend to
waive confidentiality or privilege. Use of this email is prohibited when received in error.

View raw message