第A08版:嬉游记
FreeMarker template error!


Method public java.lang.String com.founder.mp.apublish.businesspojo.impl.PeriodImpl.getPreNextLink(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String) threw an exception when invoked on com.founder.mp.apublish.businesspojo.impl.PeriodImpl@163d208
The problematic instruction:
----------
==> ${period.getPreNextLink("2","","","上一版<span style='font-size:12px;font-family:webdings'>3</span>","<span style='font-size:12px;font-family:webdings'>4</span>下一版")} [on line 127, column 144 in 11/11.mht]
----------

Java backtrace for programmers:
----------
freemarker.template.TemplateModelException: Method public java.lang.String com.founder.mp.apublish.businesspojo.impl.PeriodImpl.getPreNextLink(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String) threw an exception when invoked on com.founder.mp.apublish.businesspojo.impl.PeriodImpl@163d208
	at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:130)
	at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93)
	at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
	at freemarker.core.Expression.getStringValue(Expression.java:93)
	at freemarker.core.DollarVariable.accept(DollarVariable.java:80)
	at freemarker.core.Environment.visit(Environment.java:209)
	at freemarker.core.MixedContent.accept(MixedContent.java:99)
	at freemarker.core.Environment.visit(Environment.java:209)
	at freemarker.core.Environment.process(Environment.java:189)
	at freemarker.template.Template.process(Template.java:237)
	at com.founder.mp.apublish.plan.FreeMarkerProcessor.process(FreeMarkerProcessor.java:89)
	at com.founder.mp.apublish.plan.impl.PaperPublishPlan.run(PaperPublishPlan.java:41)
	at com.founder.mp.apublish.plan.impl.PeriodPublishPlan.run(PeriodPublishPlan.java:53)
	at com.founder.mp.apublish.task.impl.PublishPeriodTask.publish(PublishPeriodTask.java:30)
	at com.founder.mp.apublish.task.impl.PublishPeriodTask.runIt(PublishPeriodTask.java:47)
	at com.founder.mp.apublish.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:711)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
	at com.founder.mp.apublish.businesspojo.impl.PeriodImpl.getPreNextLink(PeriodImpl.java:204)
	at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:840)
	at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:106)
	... 16 more