FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix startup crashes · hadeeldaher/processing@2306444 · GitHub

Repository navigation

Commit 2306444

Browse files
committed
fix startup crashes
1 parent ca412d7 commit 2306444

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

‎java/src/processing/mode/java/DebugTray.java‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,11 @@ public DebugTray(final JavaEditor editor) {
100100
this.editor = editor;
101101
editor.addComponentListener(new EditorFollower());
102102

103-
setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
104-
add(createToolbar());
105-
add(createScrollPane());
103+
//setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
104+
Box box = Box.createVerticalBox();
105+
box.add(createToolbar());
106+
box.add(createScrollPane());
107+
getContentPane().add(box);
106108
pack();
107109

108110
/*

‎java/src/processing/mode/java/JavaEditor.java‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2174,9 +2174,11 @@ protected void setCode(SketchCode code) {
21742174
ta.clearGutterText();
21752175
// load appropriate line backgrounds for tab
21762176
// first paint breakpoints
2177-
for (LineHighlight hl : breakpointedLines) {
2178-
if (isInCurrentTab(hl.getLineID())) {
2179-
hl.paint();
2177+
if (breakpointedLines != null) {
2178+
for (LineHighlight hl : breakpointedLines) {
2179+
if (isInCurrentTab(hl.getLineID())) {
2180+
hl.paint();
2181+
}
21802182
}
21812183
}
21822184
// now paint current line (if any)

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL