Skip to main content



      Home
Home » Eclipse Projects » GEF » NPE in flowExample
NPE in flowExample [message #163682] Wed, 12 January 2005 08:08 Go to next message
Eclipse UserFriend
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 15:23 Go to previous messageGo to next message
Eclipse UserFriend
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 15: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 08:18 Go to previous message
Eclipse UserFriend
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: Sun Jun 01 02:30:41 EDT 2025

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

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

Back to the top