Bad error message for .get(null)
Author: default0Created Feb 18, 2016Updated Jul 19, 2022
Labelswaiting for PR
If you accidentally call an elements get method with null you get an error message telling you that you cannot call toString() on null, probably while restangular is trying to internally assemble the path based on the id you supposedly should have given it.
Restangular should instead catch this case up-front and tell you that the id parameter in the get function is required and cannot be null.
Source: mgonto/restangular