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 242333 - NullPointerException at javax.swing.text.View.getStartOffset
Summary: NullPointerException at javax.swing.text.View.getStartOffset
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-25 17:35 UTC by Exceptions Reporter
Modified: 2016-07-07 07:26 UTC (History)
9 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 207958


Attachments
stacktrace (3.43 KB, text/plain)
2014-02-25 17:35 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2014-02-25 17:35:37 UTC
This bug was originally marked as duplicate of bug 232038, 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 201402250001)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Linux

User Comments:
dbcurtis: Just did a format text of a java file

GUEST: trying to change the name of a method local variable (without using the refactoring)

jglick: Trying to display Projects tab.

jglick: Had run a Maven build which I aborted.

dbcurtis: Just editing a java file

GUEST: import javafx.application.Application;
import javafx.geometry.Point2D;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Pane;
import javafx.scene.paint.Color;
import javafx.scene.shape.Polygon;
import javafx.stage.Stage;

public class SierpinskiTriangle extends Application {
  @Override // Override the start method in the Application class
  public void start(Stage primaryStage) {       
    SierpinskiTrianglePane trianglePane = new SierpinskiTrianglePane(); 
    TextField tfOrder = new TextField(); 
    tfOrder.setOnAction(
      e -> trianglePane.setOrder(Integer.parseInt(tfOrder.getText())));
    tfOrder.setPrefColumnCount(4);
    tfOrder.setAlignment(Pos.BOTTOM_RIGHT);

    // Pane to hold label, text field, and a button
    HBox hBox = new HBox(10);
    hBox.getChildren().addAll(new Label("Enter an orde

tommcatt: Clicked on text then dragged down. This report came up when the top of the selected text scrolled off the top.

javydreamercsw: Editing code.

GUEST: This happens every other day forcing me to use 7.3.1 stable version. But since the installation of 7.4 beta, compiling has issues in 7.3.1. I will do a fresh installation of 7.3.1

dbcurtis: ediiting a file, just had a prior error

GUEST: Just editing a Maven Java project

GUEST: sfsd

GUEST: Tried to "split view" in the editor area, then all editors disappeared though they were still active.  Double clicked on the java file in the Projects tab to see if that would bring the editor back into view.  Didn't work.

GUEST: sf

GUEST: I do not know what happened

chrislovsund: pasted clipboard into java editor

kumarldh: Nothing special, was just editing file, has been happening a lot,

gtzabari: Used down arrow key to scroll down editor.

dengr: i wrote ejb component

jglick: Still trying to display Projects tab.

javydreamercsw: Editing code while project is buildin with dependencies.

GUEST: scrolling in java source code

GUEST: just keeps poping up one continuously




Stacktrace: 
java.lang.NullPointerException
   at javax.swing.text.View.getStartOffset(View.java:811)
   at org.netbeans.modules.editor.lib2.view.WrapInfoUpdater.initWrapInfo(WrapInfoUpdater.java:148)
   at org.netbeans.modules.editor.lib2.view.ParagraphViewChildren.buildWrapLines(ParagraphViewChildren.java:394)
   at org.netbeans.modules.editor.lib2.view.ParagraphViewChildren.updateLayout(ParagraphViewChildren.java:388)
   at org.netbeans.modules.editor.lib2.view.ParagraphView.updateLayoutAndScheduleRepaint(ParagraphView.java:279)
   at org.netbeans.modules.editor.lib2.view.ParagraphView.checkLayoutUpdate(ParagraphView.java:265)
Comment 1 Exceptions Reporter 2014-02-25 17:35:40 UTC
Created attachment 145577 [details]
stacktrace
Comment 2 Martin Balin 2016-07-07 07:26:28 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss