dmacvicar / ruby-sfcc

ruby bindings for sblim client
MIT License
6 stars 6 forks source link

ObjectPath classname must not be nil #18

Closed kkaempf closed 9 years ago

kkaempf commented 9 years ago

ObjectPath.new with a classname of nil will pass a NULL classname to sfcc newObjectPath. However, sfcc's ObjectPath.toString will crash on a NULL classname.

This patch makes sure that a missing classname to ObjectPath.new will be translated to an empty string. An explicit nil classname to ObjectPath.new will raise an ArgumentError.