Commit 712d970e authored by Evan W. Patton's avatar Evan W. Patton Committed by Jeffrey Schiller

Fix NPE when switching projects

Change-Id: Ie2bf23e58047bb19d6e0ae289f4021940f1b8324
parent 7185f2cb
......@@ -1563,7 +1563,9 @@ public class Ode implements EntryPoint {
* HideChaff when switching view from block to others
*/
private void hideChaff() {
if (designToolbar.getCurrentView() == DesignToolbar.View.BLOCKS) {
if (designToolbar.getCurrentView() == DesignToolbar.View.BLOCKS
// currentFileEditor may be null when switching projects
&& currentFileEditor != null) {
currentFileEditor.hideChaff();
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment