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 255668

Summary: NullPointerException at org.netbeans.modules.editor.lib2.view.DocumentViewOp.mouseWheelMoved
Product: editor Reporter: MackSix
Component: -- Other --Assignee: Miloslav Metelka <mmetelka>
Status: VERIFIED FIXED    
Severity: normal CC: alexvsimon, anebuzelsky, betovieirasilva, jherkel, jiriprox, jkovalsky, MackSix, niabot, ralphbenjamin, stefan79, stwr, vriha, ytn01
Priority: P1 Keywords: 81_HR_FIX
Version: 8.1   
Hardware: PC   
OS: Windows 7   
See Also: https://netbeans.org/bugzilla/show_bug.cgi?id=255669
Issue Type: DEFECT Exception Reporter:
Attachments: Logfile
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace

Description MackSix 2015-10-03 05:32:33 UTC
Created attachment 156499 [details]
Logfile

1. Move cursor to left view of graphical refactoring preview (or Diff view).
2. Try to scroll with mouse wheel. 

This NPE happens. 


Product Version: NetBeans IDE 8.1 RC (Build 201510012201)
Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27
System: Windows 7 version 6.1 running on amd64; UTF-8; en_US (nb)
Comment 1 Ralph Ruijs 2015-10-05 08:34:25 UTC
Seems to be related to issue 213268, reassigning.
Comment 2 Miloslav Metelka 2015-10-05 09:09:23 UTC
Reproduced. I'll try to fix ASAP and IMO it's a candidate for 8.1 integration.
Comment 3 Jiri Prox 2015-10-05 12:44:19 UTC
*** Bug 255695 has been marked as a duplicate of this bug. ***
Comment 4 ytn01 2015-10-05 18:48:57 UTC
Created attachment 156525 [details]
stacktrace

Was working on a Groovy class. These are the actions I took when the exception got generated:

-Renamed the class from the project window file context,
-Switched a Groovy scrip file where this renamed class was in use,
-Pressed ctrl+z to undo, and I was promoted to if i waana undo the rename,
-I confirmed rename, and all occurences of the renamed class in the current groovy script file reverted to previous name,
-I saved the file (ctrl+s),
-I renamed the class back to its original name from the project window file context menu
Comment 5 ytn01 2015-10-05 19:03:56 UTC
Created attachment 156526 [details]
stacktrace

Was working on a Groovy class. These are the actions I took when the exception got generated:

-Renamed the class using ctrl+R on the project window file context,
-Switched a Groovy scrip file which uses this renamed class,
-Inside this script file, I Pressed ctrl+z to undo, and I was promoted  if i really wanna undo the rename,

and exception got generated
Comment 6 Exceptions Reporter 2015-10-05 19:04:01 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=220338
Comment 7 Ralph Ruijs 2015-10-06 05:43:54 UTC
*** Bug 255704 has been marked as a duplicate of this bug. ***
Comment 8 jherkel 2015-10-06 07:45:57 UTC
Created attachment 156541 [details]
stacktrace

open history for java source file
Comment 9 stefan79 2015-10-06 09:54:57 UTC
Created attachment 156550 [details]
stacktrace

Diff on Deleted-(CVS)-File.
Comment 10 Exceptions Reporter 2015-10-06 09:55:02 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=220311
Comment 11 Vladimir Riha 2015-10-06 15:33:57 UTC
Created attachment 156564 [details]
stacktrace

Scrolling using mouse wheel in Diff view (History) of file versioned with Git
Comment 12 Miloslav Metelka 2015-10-06 16:28:00 UTC
Fixed by
http://hg.netbeans.org/jet-main/rev/afdd03c528b2
I'd like to ask our QE to test on Mac OS X platform. Thanks.
Comment 13 Quality Engineering 2015-10-07 01:25:26 UTC
Integrated into 'main-silver', will be available in build *201510070002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/afdd03c528b2
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #255668 - NullPointerException at org.netbeans.modules.editor.lib2.view.DocumentViewOp.mouseWheelMoved.
Comment 14 Jiri Prox 2015-10-07 07:53:01 UTC
verified in 

Product Version: NetBeans IDE Dev (Build 201510070002)
Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\dev
Comment 15 Jiri Kovalsky 2015-10-07 09:26:51 UTC
Yonathan WeldeGebriel, can you please verify this fix on your Mac OS X system ASAP? Thanks a lot for your help!
Comment 16 Miloslav Metelka 2015-10-07 12:45:36 UTC
*** Bug 255770 has been marked as a duplicate of this bug. ***
Comment 17 stwr 2015-10-07 15:03:14 UTC
Just got the same exception.

Product Version: NetBeans IDE 8.1 RC (Build 201510012201)
Java: 1.8.0_60-ea; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-ea-b25
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 18 ytn01 2015-10-08 00:28:10 UTC
(In reply to Jiri Kovalsky from comment #15)
> Yonathan WeldeGebriel, can you please verify this fix on your Mac OS X
> system ASAP? Thanks a lot for your help!

Jiri,
I verified the fix in build 201510070002 on Mac OS.
I'm no longer seeing the exception happening.
Comment 19 Miloslav Metelka 2015-10-08 09:24:31 UTC
Integrated in release81:
afdd03c528b2 transplanted to 46a573881313
Comment 20 Jiri Kovalsky 2015-10-08 09:30:47 UTC
Thanks Mark for the bug report, thanks Milo for the fix and thank you Yonathan for its verification.
Comment 21 stwr 2015-10-10 12:00:01 UTC
Verified in NetBeans IDE 8.1 RC2 (Build 201510082301).
Comment 22 Miloslav Metelka 2015-10-14 08:44:12 UTC
*** Bug 255909 has been marked as a duplicate of this bug. ***