storm-gen icon indicating copy to clipboard operation
storm-gen copied to clipboard

StringIndexOutOfBoundsException when querying by example with only boolean field set

Open turbomanage opened this issue 10 years ago • 0 comments

From https://code.google.com/p/storm-gen/issues/detail?id=42

What steps will reproduce the problem?

  1. Have an entity with boolean type field
  2. Create this entity and set only this field
  3. dao.queryByExample

What is the expected output? What do you see instead?

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

Please provide any additional information below.

09-27 21:45:43.329: E/AndroidRuntime(26567): Caused by: java.lang.StringIndexOutOfBoundsException: length=0; index=5 09-27 21:45:43.329: E/AndroidRuntime(26567): at java.lang.String.indexAndLength(String.java:579) 09-27 21:45:43.329: E/AndroidRuntime(26567): at java.lang.String.substring(String.java:1438) 09-27 21:45:43.329: E/AndroidRuntime(26567): at com.turbomanage.storm.query.FilterBuilder.where(FilterBuilder.java:174) 09-27 21:45:43.329: E/AndroidRuntime(26567): at com.turbomanage.storm.query.FilterBuilder.exec(FilterBuilder.java:123) 09-27 21:45:43.329: E/AndroidRuntime(26567): at com.turbomanage.storm.SQLiteDao.queryByExample(SQLiteDao.java:268) 09-27 21:45:43.329: E/AndroidRuntime(26567): at com.turbomanage.storm.SQLiteDao.getByExample(SQLiteDao.java:145)

turbomanage avatar Mar 19 '14 00:03 turbomanage