jlowenz / hypergraphdb

Automatically exported from code.google.com/p/hypergraphdb
0 stars 0 forks source link

Querying a projection without a type condition throws an undescriptive exception #61

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Query a bean on one of its projections: hg.eq("foo", "bar")

What is the expected output? What do you see instead?
It would be helpful if the error indicated that a type condition is missing 
from the query, instead a NullPointerException is thrown.

What version of the product are you using? On what operating system?
HGDB 1.1

Please provide any additional information below.

Exception in thread "main" java.lang.NullPointerException
    at org.hypergraphdb.query.cond2qry.ToQueryMap.toQuery(ToQueryMap.java:599)
    at org.hypergraphdb.query.cond2qry.ExpressionBasedQuery.<init>(ExpressionBasedQuery.java:598)
    at org.hypergraphdb.HGQuery.make(HGQuery.java:78)
    at org.hypergraphdb.HGQuery$hg.getAll(HGQuery.java:1031)

Original issue reported on code.google.com by cgbeek...@gmail.com on 19 Jun 2011 at 8:23

GoogleCodeExporter commented 9 years ago
An IllegalArgumentException is now thrown with a more informative message...

Original comment by borislav...@gmail.com on 21 Jun 2011 at 9:29