Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#1584 closed defect (fixed)

NullPointerException when configuring Base1PluginExecuter if 'descr' field is missing

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: minor Milestone: BASE 2.17.1
Component: coreplugins Version:
Keywords: Cc:

Description

Using a plug-in configuration file that is missing the 'descr' field to configure a Base1 plug-in causes a NullPointerException. For testing the http://baseplugins.thep.lu.se/browser/plugins/base1/se.lu.onk.VirtualArray/trunk/lib/pluginVirtualArray.base?rev=996 can be used. It has a space instead of a tab which causes the same problem.

java.lang.NullPointerException
	at net.sf.basedb.plugins.Base1PluginExecuter.configure(Base1PluginExecuter.java:419)
	at net.sf.basedb.core.PluginConfigurationRequest.invoke(PluginConfigurationRequest.java:114)
	at org.apache.jsp.common.plugin.index_jsp._jspService(index_jsp.java:506)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

The workaround is to make sure that a properly formatter 'descr' field is always included in the configuration file.

Change History (3)

comment:1 by Nicklas Nordborg, 13 years ago

Owner: changed from everyone to Nicklas Nordborg
Status: newassigned

comment:2 by Nicklas Nordborg, 13 years ago

Resolution: fixed
Status: assignedclosed

(In [5583]) Fixes #1584: NullPointerException when configuring Base1PluginExecuter if 'descr' field is missing

comment:3 by Nicklas Nordborg, 13 years ago

(In [5584]) References #1584: NullPointerException when configuring Base1PluginExecuter if 'descr' field is missing

No need to reload configuration from database unless we really want to set the description.

Note: See TracTickets for help on using tickets.