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

ModelRepository.createObject fails with null parameters #116

Open
1 of 2 tasks
nikooiko opened this issue Apr 14, 2017 · 0 comments
Open
1 of 2 tasks

ModelRepository.createObject fails with null parameters #116

nikooiko opened this issue Apr 14, 2017 · 0 comments

Comments

@nikooiko
Copy link

Bug or feature request

  • Bug
  • Feature request

Description of feature (or steps to reproduce if bug)

ModelRepository.createObject method should check if parameters equals null and set to a default value otherwise. Old (now deprecated) saveModel method did that.

Link to sample repo to reproduce issue (if bug)

Will provide if needed.

Expected result

Model without properties set.

Actual result (if bug)

ModelRepository.createObject throws NullPointerException when given parameters are null

Additional information (Node.js version, LoopBack version, etc)

LB Android SDK: 1.5.1
Node: 7.9
LB: 3.4

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