Author: yradtsevich
Date: 2012-04-01 06:06:20 -0400 (Sun, 01 Apr 2012)
New Revision: 39952
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/StorageRevisionEditorInputAdapter.java
Log:
https://issues.jboss.org/browse/JBIDE-11179 : BrowserSim - add a view source option
- fixed NPE for in-memory storage (storage without path)
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/StorageRevisionEditorInputAdapter.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/StorageRevisionEditorInputAdapter.java 2012-03-31
03:33:13 UTC (rev 39951)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/StorageRevisionEditorInputAdapter.java 2012-04-01
10:06:20 UTC (rev 39952)
@@ -64,7 +64,7 @@
}
public String getName() {
- return storage.getFullPath().toString();
+ return storage.getFullPath() != null ? storage.getFullPath().toString() : null;
}
public boolean isReadOnly() {