twilio/twilio-java — Issue #18: Constructors for resource instances must not accept null Sid
Author: ChristerF
Created: 2012-01-13 23:10:45+00:00
State: open

Currently, if you accidentally pass in a null for the sid in the constructor of a Resource, e.g. Call and try to do call.getSid() for example, it will fail with a StackOverflow exception due to a null property indicating the need to load the property. And the load in its turn is referencing getResourceLocation which calls getSid which calls getProperty which call load() which calls getResourceLocation etc...