Thanks! To be precise, I encountered it in version 1.1.2 and I don't know how the latest code behaves. I'll try to put together a test case to demonstrate it tonight. On Mar 26, 2012 8:52 AM, "James M Snell" <[email protected]> wrote:
> This would definitely be a bug. I'll double check to make sure it's > fixed in the Abdera2-server code. If someone wants to submit a patch > for it against 1.2 I can check that in to the trunk as well. > > - James > > On Mon, Mar 26, 2012 at 8:37 AM, David Ventimiglia <[email protected]> > wrote: > > But according to the Atom Pub spec a workspace may contain zero or more > > collections. How can an Abdera workspace contain zero collections if it > > throws a NullPointerException? > > On Mar 26, 2012 8:31 AM, "Christophe Dupriez" <[email protected]> > > wrote: > > > >> I have a single Workspace so it is not empty! > >> I prefer to have multiple Abdera services for different information > types, > >> one workspace for services and many collections per workspace. > >> I follow (roughly) the OData convention + OpenSearch: > >> > http://host/application/**service.svc/collection(record-**id)?opensearch< > http://host/application/service.svc/collection(record-id)?opensearch > >parameters > >> > >> Most of the job is to have a correct Provider and to implement the > >> CollectionAdapter. > >> > >> Have a nice evening, > >> > >> Christophe > >> > >> Le 26/03/2012 17:15, David Ventimiglia a écrit : > >> > >>> Hi, > >>> > >>> If I create a DefaultProvider and add a SimpleWorkspaceInfo to it, but > >>> don't add a CollectionAdapter to that, I get a NullPointerException. > How > >>> is an empty workspace, with no collections, to be represented? > >>> > >>> Thanks, David. > >>> > >>> > >> >
