Fixed nullpointer exception caused by navigation panel for non-opened files.