Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#1212 closed defect (fixed)

NullPointerException when trying to find dates that has a null value

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: major Milestone: BASE 2.9.1
Component: core Version:
Keywords: Cc:

Description

  1. Go to any list page that has at least one date column. For example, the Administrate -> News page
  2. Enter '=' in one of the date filter columns and press enter.
  3. Result in NullPointerException: null in the error message above the list

Stack trace from log file:

java.lang.NullPointerException
	at net.sf.basedb.core.PropertyFilter.getRestriction(PropertyFilter.java:642)
	at net.sf.basedb.core.ItemContext.configureQuery(ItemContext.java:1058)
	at net.sf.basedb.clients.web.Base.getConfiguredQuery(Base.java:939)
	at net.sf.basedb.clients.web.Base.getConfiguredQuery(Base.java:916)
	at org.apache.jsp.admin.news.list_005fnews_jsp._jspService(list_005fnews_jsp.java:205)
....

No known workaround exists.

Change History (3)

comment:1 by Nicklas Nordborg, 16 years ago

Owner: changed from everyone to Nicklas Nordborg
Status: newassigned

Same thing happens when filter is '<>'

comment:2 by Nicklas Nordborg, 16 years ago

Resolution: fixed
Status: assignedclosed

(In [4699]) Fixes #1212: NullPointerException when trying to find dates that has a null value

comment:3 by Nicklas Nordborg, 16 years ago

Component: webcore
Note: See TracTickets for help on using tickets.