This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 177294 - Exception thrown when right clicking in local history diff window
Summary: Exception thrown when right clicking in local history diff window
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Platform (show other bugs)
Version: 6.x
Hardware: PC Linux
: P1 normal (vote)
Assignee: Karol Harezlak
URL:
Keywords:
: 176827 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-11-20 06:56 UTC by Petr Suchomel
Modified: 2009-12-11 05:52 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception thrown (4.34 KB, text/plain)
2009-11-20 06:56 UTC, Petr Suchomel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Suchomel 2009-11-20 06:56:17 UTC
Created attachment 91427 [details]
Exception thrown

Exception thrown when right clicking in local history diff window - you can not get rid of, need to shut down the IDE
Comment 1 J Bachorik 2009-11-20 07:09:21 UTC
Karol, check the line 100 in AddImportTaskFactory.
The preferred way to obtain a valid class index is to use a CompilationInfo instance a then call ci.getClassPathInfo().getClassIndex(). Otherwise you may get in troubles with incomplete class path.

Let me know whether you'll fix it or I should change your code.
Comment 2 Karol Harezlak 2009-11-20 07:13:55 UTC
Ok I'll test it asap.
Comment 3 Karol Harezlak 2009-11-20 07:20:27 UTC
It fixes problem, I'll go through High Resistance process but I need code review. Jardo I'll send you email with diff so please review and approve code changes. Thanks
Comment 4 Karol Harezlak 2009-11-20 07:50:04 UTC
fixed,

changeset:

http://hg.netbeans.org/javafx/rev/7ffc53f4cd43
Comment 5 Andrei Chistiakov 2009-11-26 06:03:33 UTC
Verified with NetBeans IDE 6.8 RC1 (Build 200911252200)
Comment 6 J Bachorik 2009-12-11 05:52:22 UTC
*** Bug 176827 has been marked as a duplicate of this bug. ***