Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support nulls for boxed types in get resolvers made by Annotation Processor #641

Closed
xelevra opened this issue Apr 22, 2016 · 3 comments
Closed
Assignees
Labels
Milestone

Comments

@xelevra
Copy link

xelevra commented Apr 22, 2016

There is a class:

class Task {
    @StorIOSQLiteColumn(name = "c_start_time")
    protected Long startTime;
}

In the database c_start_time is nullable.

Now generates:

object.startTime = cursor.getLong(cursor.getColumnIndex("c_start_time"));

Right:

if (!cursor.isNull(cursor.getColumnIndex("c_start_time"))) 
    object.startTime = cursor.getLong(cursor.getColumnIndex("c_start_time"));
@nikitin-da
Copy link
Collaborator

I'll prepare fix asap, thanks for report!

@nikitin-da nikitin-da added the bug label Apr 22, 2016
@nikitin-da nikitin-da added this to the v1.9.0 milestone Apr 22, 2016
@nikitin-da nikitin-da self-assigned this Apr 22, 2016
@nikitin-da nikitin-da modified the milestones: v1.10.0, v1.9.0 May 18, 2016
@simtse
Copy link

simtse commented Jul 4, 2016

Hope to see this soon ^_^ I'm running in to this issue too.

@bluebery
Copy link

bluebery commented Jul 4, 2016

This would be really helpful!! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants