Skip to content

ModelRepository.createObject fails with null parameters #116

Description

@nikooiko

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions