You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OVERVIEW
This test demonstrates a bug in which an OrientDB BEFORE_DELETE hook receives an unpopulated iRecord when OObjectDatabaseTx.delete(Object) is called within a transaction.
ANALYSIS
The test fails due to a NullPointerException (NPE) being thrown in the BEFORE_DELETE hook, when ((ODocument)iRecord).getClassName() is used for a .equals() comparison - in the same manner as shown in OrientDB examples. This NPE occurs because getClassName() returns null, because the iRecord's fields are not populated when the onTrigger method is called.
ENVIRONMENT
BeforeDeleteHook.java implements a server side hook, with an onTrigger method for processing BEFORE_DELETE.
The client (TestHook.java) connects using the OrientDB remote protocol.
The delete method is called within an OrientDB transaction.
The text was updated successfully, but these errors were encountered:
OVERVIEW
This test demonstrates a bug in which an OrientDB BEFORE_DELETE hook receives an unpopulated iRecord when OObjectDatabaseTx.delete(Object) is called within a transaction.
ANALYSIS
The test fails due to a NullPointerException (NPE) being thrown in the BEFORE_DELETE hook, when ((ODocument)iRecord).getClassName() is used for a .equals() comparison - in the same manner as shown in OrientDB examples. This NPE occurs because getClassName() returns null, because the iRecord's fields are not populated when the onTrigger method is called.
ENVIRONMENT
BeforeDeleteHook.java implements a server side hook, with an onTrigger method for processing BEFORE_DELETE.
The client (TestHook.java) connects using the OrientDB remote protocol.
The delete method is called within an OrientDB transaction.
The text was updated successfully, but these errors were encountered: