* From 2.9: stateData.type contains JMOL or CHIMERA, data is in jar entry
* "viewer_"+stateData.viewId
*/
- ViewerType viewerType = ViewerType.valueOf(stateData.getType());
+ String type = stateData.getType();
+ if (type == null)
+ {
+ type = ViewerType.JMOL.toString();
+ }
try
{
+ ViewerType viewerType = ViewerType.valueOf(type);
switch (viewerType)
{
case CHIMERA:
} catch (IllegalArgumentException | NullPointerException e)
{
Cache.log.error(
- "Invalid structure viewer type: " + stateData.getType());
+ "Invalid structure viewer type: " + type);
}
}