Bug 689 - HopObject.list() different behaviour for transient vs persisted object
: HopObject.list() different behaviour for transient vs persisted object
Status: RESOLVED FIXED
: Helma
Database Layer
: CVS trunk
: Other Linux
: P5 normal
: 1.7.0
Assigned To:
:
:
:
  Show dependency treegraph
 
Reported: 2009-11-03 10:48 by
Modified: 2009-11-05 09:12 (History)


Attachments
stack trace NPE list(x,y) (1.59 KB, text/plain)
2009-11-03 10:49, s o
Details


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2009-11-03 10:48:16
if the object is transient a call to list() with the min and/or max argument
will result in NPE. this works for persisted objects.

{{{
var foo = new FooProto();
foo.list(); // works
foo.list(0,10); // NPE fail
}}}

if persisted all is good:

{{{
var foo = FooProto.get(0);
foo.list();
foo.list(0, 10);
}}}
------- Comment #1 From 2009-11-03 10:49:04 -------
Created an attachment (id=125) [details]
stack trace NPE list(x,y)
------- Comment #2 From 2009-11-04 12:02:16 -------
Fixed in svn.
------- Comment #3 From 2009-11-04 17:27:09 -------
still broken with current svn head, easy to reproduce:

{{{

Root.prototype.testlist_action = function() 
   var hopObj = new HopObject();
   hopObj.list(); // works
   hopObj.list(0,10); // NPE
}

}}}
------- Comment #4 From 2009-11-05 09:12:09 -------
Fixed that one too.