Changes between Initial Version and Version 1 of Ticket #1441


Ignore:
Timestamp:
Nov 18, 2009, 11:29:16 AM (15 years ago)
Author:
Nicklas Nordborg
Comment:

I get this also, and I think the same error can happen for other items as well.

It seems like root cause is found in the BasicItem.addUsingItems() method. The call to item.getClass() can return a dynamic Hibernate-generated proxy class. This class is not known by BASE and the Item.fromDataClass() returns null. The problems should be easy to fix by calling Item.fromDataObject(item) instead.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1441

    • Property MilestoneBASE 2.4.2
  • Ticket #1441 – Description

    initial v1  
    55
    66java.lang.NullPointerException on page /views/trashcan/view_item.jsp
    7        
     7{{{
    88Version         BASE 2.13.1 (build #5134; schema #75)
    99Web server      Apache Tomcat/6.0.20
     
    5050...at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
    5151...at java.lang.Thread.run(Thread.java:619)
    52 
     52}}}
    5353