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 111905 - IndexOutOfBoundsException when copy a sample to the editor
Summary: IndexOutOfBoundsException when copy a sample to the editor
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Alexei Mokeev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-03 15:01 UTC by Alexandr Scherbatiy
Modified: 2007-09-27 11:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2007-08-03 15:01:36 UTC
build: M0
NB: 6.0

Steps to reproduce:

IndexOutOfBoundsException pops up when copy a sample to the
   JavaFX editor if the preview mode is enabled

   - Enable the preview mode
   - Copy the Tree sample code from  the link to the JavaFX editor
    https://openjfx.dev.java.net/Getting_Started_With_JavaFX.html#trees

    The exceptions pops up:

uncaught FX exception: java.lang.IndexOutOfBoundsException
java.lang.IndexOutOfBoundsException: Illegal OffsetKind[offset=-1] in
org.netbeans.modules.editor.javafx.FXDocument@b937ac, kitClass=class
org.netbeans.modules.editor.javafx.FXKit, docLen=1235 used by
org.openide.text.SimpleES@722368.
Comment 1 Alexey Butenko 2007-08-30 08:43:35 UTC
Fixed in trunk
Comment 2 Alexandr Scherbatiy 2007-09-27 11:27:11 UTC
Unable to reproduce the issue.
Verified in Netbeans 6.0 Beta1 with JavaFX plugin version 1.0.2