From 2f46c7b07a5aeda6ae2bcc43dce0f9b2c23af14c Mon Sep 17 00:00:00 2001 From: Patrick Vares Date: Thu, 29 Jan 2015 18:11:51 -0500 Subject: [PATCH] A small fix to allow processing to run --- app/src/processing/app/Sketch.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/src/processing/app/Sketch.java b/app/src/processing/app/Sketch.java index 09fc78305..12aac7b9b 100644 --- a/app/src/processing/app/Sketch.java +++ b/app/src/processing/app/Sketch.java @@ -1210,10 +1210,13 @@ public class Sketch { current = code[which]; currentIndex = which; current.visited = System.currentTimeMillis(); - - editor.setCode(current); + try { + editor.setCode(current); // editor.header.rebuild(); - editor.header.repaint(); + editor.header.repaint(); + } catch (NullPointerException e) { + e.printStackTrace(); + } }