Skip to content

Commit

Permalink
Fixed NullPointerException in MainThread with commands from console.
Browse files Browse the repository at this point in the history
  • Loading branch information
wmaddisn committed Jun 25, 2017
1 parent 957c22c commit 446fbb4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Resources/settings/minimal/Simplicity/note.txt
@@ -0,0 +1 @@
Simplification schemes are stored in this directory.
2 changes: 1 addition & 1 deletion Source/mesquite/lib/MainThread.java
Expand Up @@ -117,7 +117,7 @@ public void run() {
setCurrent(pc.id);
patience = 5;
boolean loggerSet = false;
if (c.getSupplementalLogger() != null && logger == null){
if (c != null && c.getSupplementalLogger() != null && logger == null){
MesquiteThread.setLoggerCurrentThread(c.getSupplementalLogger());
loggerSet = true;
}
Expand Down
Expand Up @@ -418,7 +418,7 @@ private synchronized void reportDaughters (int drawnRoot, int node){ //node be
for (int i=0; i<daughtersUR.length; i++)
s+= " " + daughtersUR[i];
} else s+= "none";
Debugg.println(s);
//Debugg.println(s);
for (int d = tree.firstDaughterOfNode(node); tree.nodeExists(d); d = tree.nextSisterOfNode(d)){
reportDaughters(drawnRoot, d);
}
Expand Down

0 comments on commit 446fbb4

Please sign in to comment.