kinyelo / vosao

Automatically exported from code.google.com/p/vosao
GNU Lesser General Public License v2.1
1 stars 2 forks source link

增加字段后也没出错 #331

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.菜单"Content->Structure->Add field"
2.菜单 "Content->Pages->Home page->Preview" 
3.也没错误信息:"threw exception java.lang.NullPointerException at 
vm[line 15, column 11]"

解决方法:
文件 StructurePageRenderDecorator 第166行 应改写为:
String fieldContent = doc.getRootElement().elementText(field.getName());
if(fieldContent == null) 
  continue;
fieldContent = fieldContent.replace("]]]", "]]>")

Original issue reported on code.google.com by LiTongg...@gmail.com on 30 Aug 2010 at 2:20

GoogleCodeExporter commented 9 years ago
Sorry, Summary应该是“增加字段后,浏览主页出错”

Original comment by LiTongg...@gmail.com on 30 Aug 2010 at 2:23

GoogleCodeExporter commented 9 years ago

Original comment by kinyelo@gmail.com on 30 Aug 2010 at 7:38

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r912.

Original comment by kinyelo@gmail.com on 25 Sep 2010 at 8:39

GoogleCodeExporter commented 9 years ago
Fixed.

Original comment by kinyelo@gmail.com on 25 Sep 2010 at 8:39