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

Problem with PrimaryKey when create new task and save #1

Open
toantran-ea opened this issue Mar 18, 2016 · 1 comment
Open

Problem with PrimaryKey when create new task and save #1

toantran-ea opened this issue Mar 18, 2016 · 1 comment

Comments

@toantran-ea
Copy link

Process: com.donnfelker.tasko, PID: 27019
io.realm.exceptions.RealmPrimaryKeyConstraintException: Value already exists: 
at io.realm.internal.Table.throwDuplicatePrimaryKeyException(Table.java:636)
at io.realm.internal.Table.addEmptyRow(Table.java:360)
at io.realm.Realm.createObject(Realm.java:661)
at com.donnfelker.tasko.fragments.NewTaskFragment.addTask(NewTaskFragment.java:116)
at com.donnfelker.tasko.fragments.NewTaskFragment.onAddClick(NewTaskFragment.java:90)
at com.donnfelker.tasko.fragments.NewTaskFragment$$ViewBinder$1.doClick(NewTaskFragment$$ViewBinder.java:18)
at butterknife.internal.DebouncingOnClickListener.onClick(DebouncingOnClickListener.java:22)
at android.view.View.performClick(View.java:4780)
at android.view.View$PerformClick.run(View.java:19866)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

Hi, I tried with branch forecastio, when adding new task, this issue happened.
I found that with CurrentConditionService, when inserting new task into Realm, we did not set unique UUID for that task.

Please check the PR here: #2

@toantran-ea
Copy link
Author

@donnfelker Thanks for merging the PR. This issue should be closed then ;)

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

No branches or pull requests

1 participant