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 270809 - AssertionError at org.netbeans.editor.BaseTextUI.atomicLock
Summary: AssertionError at org.netbeans.editor.BaseTextUI.atomicLock
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-05 20:25 UTC by alied
Modified: 2017-07-19 19:04 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 229374


Attachments
stacktrace (3.25 KB, text/plain)
2017-06-05 20:25 UTC, alied
Details
stacktrace (3.36 KB, text/plain)
2017-07-19 19:04 UTC, alied
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alied 2017-06-05 20:25:23 UTC
This bug was originally marked as duplicate of bug 259161, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201706050001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.131-b11, Java(TM) SE Runtime Environment, 1.8.0_131-b11
OS: Linux

User Comments:
antoniocs: I was just copying code around and I got this error.
The code was this:
    struct Ball ball = {
        .coords.x = 120,
        .coords.y = 30,
        .coords.w = 20,
        .coords.h = 20,
        .left = 0,
        .up = 0
    };

GUEST: Ctrl + V

GUEST: Crash while re-do

GUEST: After the undo exception then tried to paste some text and got this issue

alied: after a previous exception tried to paste code in a JUnit test.

antoniocs: Another copy and paste error.
If  this happens again I will move back to the stable version




Stacktrace: 
java.lang.AssertionError
   at org.netbeans.editor.BaseTextUI.atomicLock(BaseTextUI.java:514)
   at org.netbeans.editor.BaseDocument$OldListenerAdapter.atomicLock(BaseDocument.java:1866)
   at org.netbeans.editor.BaseDocument.fireAtomicLock(BaseDocument.java:1924)
   at org.netbeans.editor.BaseDocument.atomicLockImpl(BaseDocument.java:1779)
   at org.netbeans.editor.GuardedDocument.runAtomicAsUser(GuardedDocument.java:354)
   at org.netbeans.editor.BaseKit$PasteAction.actionPerformed(BaseKit.java:2431)
Comment 1 alied 2017-06-05 20:25:25 UTC
Created attachment 164471 [details]
stacktrace
Comment 2 alied 2017-07-19 19:04:48 UTC
Created attachment 164794 [details]
stacktrace

just after the NPE in Caret I tried to type in a Java source file and got this one.