1 Answer
- Newest
- Most votes
- Most comments
0
This is most commonly caused by referencing a null object in your code. For Example:
public class MyClass { public int id {get; set;} }
MyClass myClass; myClass.Id = 0; // Null reference because it has not been instantiated.
//Working code MyClass myClass = new MyClass(); // new MyClass(); instantiates the object. myClass.Id = 0; // Works because the myClass has been instantiated.
Since you say it works locally, Could there be a permission missing on lambda that is preventing an object from instantiating like it normally would with your local permissions? I would check that first.
answered a year ago
Relevant content
- asked 4 months ago
- asked a year ago
- asked a year ago
- asked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a year ago