Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
fix null pointer for stats in document info
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Eng committed Apr 3, 2013
1 parent 5804c26 commit af5ef57
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -272,7 +272,10 @@ public void selectDocument(DocumentId docId)
{
display.enableTab(MainView.Editor, true);
selectedDocument = docInfo;
selectedDocumentStats.set(selectedDocument.getStats());
if (selectedDocument.getStats() != null)
{
selectedDocumentStats.set(selectedDocument.getStats());
}
if (currentView == MainView.Editor)
{
display.setDocumentLabel(selectedDocument.getPath(), selectedDocument.getName());
Expand Down

0 comments on commit af5ef57

Please sign in to comment.