Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » NPE in equals of IResource
NPE in equals of IResource [message #87480] Wed, 02 July 2003 11:42 Go to next message
Eclipse UserFriend
Hi,

if I try something like this:

IProject myProject = .... ; (some project)
myProject.equals(....);

I get an NullPointerException. 'myProject' is not null, of course.

Has anybody an explanation for this behaviour. Have it something to do with
the IResource.equals() - definition?

It's no real problem for me, but I'm just curious.

Thanks Peter
Re: NPE in equals of IResource [message #87560 is a reply to message #87480] Wed, 02 July 2003 12:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: John_Arthorne.oti.com_

Please enter a bug report against platform core. A more complete
example (fill in the "...") would be useful.
--


Peter Baetz wrote:
> Hi,
>
> if I try something like this:
>
> IProject myProject = .... ; (some project)
> myProject.equals(....);
>
> I get an NullPointerException. 'myProject' is not null, of course.
>
> Has anybody an explanation for this behaviour. Have it something to do with
> the IResource.equals() - definition?
>
> It's no real problem for me, but I'm just curious.
>
> Thanks Peter
>
>
>
Re: NPE in equals of IResource [message #88058 is a reply to message #87560] Thu, 03 July 2003 06:50 Go to previous message
Eclipse UserFriend
Bug 39591 is entered. Peter

"John Arthorne" <John_Arthorne@oti.com_> wrote in message
news:3F0307A5.5000403@oti.com_...
> Please enter a bug report against platform core. A more complete
> example (fill in the "...") would be useful.
> --
>
>
> Peter Baetz wrote:
> > Hi,
> >
> > if I try something like this:
> >
> > IProject myProject = .... ; (some project)
> > myProject.equals(....);
> >
> > I get an NullPointerException. 'myProject' is not null, of course.
> >
> > Has anybody an explanation for this behaviour. Have it something to do
with
> > the IResource.equals() - definition?
> >
> > It's no real problem for me, but I'm just curious.
> >
> > Thanks Peter
> >
> >
> >
>
Previous Topic:Interacting with VCM provider when saving resources
Next Topic:casting an IResource object to IContainer???
Goto Forum:
  


Current Time: Sat Jul 05 02:07:22 EDT 2025

Powered by FUDForum. Page generated in 0.04543 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top