Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » NPE in flowExample
NPE in flowExample [message #163682] Wed, 12 January 2005 13:08 Go to next message
Steven is currently offline StevenFriend
Messages: 6
Registered: July 2009
Junior Member
Hello,

I wrote my own editor (GraphicalEditorWithPalette) and I often get NPE's.
The stacktrace ends with
org.eclipse.gef.tools.ToolUtilities.getSelectionWithoutDepen dencies(ToolUtilities.java:35)
I get this NPE always if I click around and drag & drop very fast. So I
tried what happens in flowExample (GraphicalEditorWithPalette) if I do
that - and I got this exception, too.

Anyone knows what I am doing wrong or how to solve this problem?

thx a lot - steven
Re: NPE in flowExample [message #163727 is a reply to message #163682] Wed, 12 January 2005 20:23 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
I can't reproduce this. Based on the info you provided, it seems
DragEditPartsTracker's current viewer is null when it calls the
ToolUtilities method. Maybe you should try to debug why it's null. Open a
bug report if the problem persists.

"steven" <stevenvoelkel@gmx.de> wrote in message
news:cs37gp$bn8$1@www.eclipse.org...
> Hello,
>
> I wrote my own editor (GraphicalEditorWithPalette) and I often get NPE's.
> The stacktrace ends with
>
org.eclipse.gef.tools.ToolUtilities.getSelectionWithoutDepen dencies(ToolUtil
ities.java:35)
> I get this NPE always if I click around and drag & drop very fast. So I
> tried what happens in flowExample (GraphicalEditorWithPalette) if I do
> that - and I got this exception, too.
>
> Anyone knows what I am doing wrong or how to solve this problem?
>
> thx a lot - steven
>
Re: NPE in flowExample [message #163744 is a reply to message #163682] Wed, 12 January 2005 20:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

This is usually the result of focus lost events. Is there anything causing
focus to get lost while the mouse button is down? what platform?

"steven" <stevenvoelkel@gmx.de> wrote in message
news:cs37gp$bn8$1@www.eclipse.org...
> Hello,
>
> I wrote my own editor (GraphicalEditorWithPalette) and I often get NPE's.
> The stacktrace ends with
>
org.eclipse.gef.tools.ToolUtilities.getSelectionWithoutDepen dencies(ToolUtil
ities.java:35)
> I get this NPE always if I click around and drag & drop very fast. So I
> tried what happens in flowExample (GraphicalEditorWithPalette) if I do
> that - and I got this exception, too.
>
> Anyone knows what I am doing wrong or how to solve this problem?
>
> thx a lot - steven
>
Re: NPE in flowExample [message #163798 is a reply to message #163744] Thu, 13 January 2005 13:18 Go to previous message
Steven is currently offline StevenFriend
Messages: 6
Registered: July 2009
Junior Member
Randy Hudson wrote:

> This is usually the result of focus lost events. Is there anything causing
> focus to get lost while the mouse button is down? what platform?


Hallo,

I do not think that anything loses focus. I am just clicking and get this
excption. I use eclipse 3.0.1 on Windows.
Does anybody get the same exceptions in flowexample? in shapeexample I get
no exceptions...

steven


> "steven" <stevenvoelkel@gmx.de> wrote in message
> news:cs37gp$bn8$1@www.eclipse.org...
>> Hello,
>>
>> I wrote my own editor (GraphicalEditorWithPalette) and I often get NPE's.
>> The stacktrace ends with
>>
> org.eclipse.gef.tools.ToolUtilities.getSelectionWithoutDepen dencies(ToolUtil
> ities.java:35)
>> I get this NPE always if I click around and drag & drop very fast. So I
>> tried what happens in flowExample (GraphicalEditorWithPalette) if I do
>> that - and I got this exception, too.
>>
>> Anyone knows what I am doing wrong or how to solve this problem?
>>
>> thx a lot - steven
>>
Previous Topic:DND feedback problem
Next Topic:CVS/ToolBarLayout getPreferredSize infinite loop
Goto Forum:
  


Current Time: Tue Apr 23 12:10:36 GMT 2024

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

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

Back to the top