Based upon the initial code you posted that should still throw the exception as you set receiver to null, then call length() on that reference, so I suspect that is not all that changed
Type: Posts; User: copeg
Based upon the initial code you posted that should still throw the exception as you set receiver to null, then call length() on that reference, so I suspect that is not all that changed
Something is null on that line listed in the Exception stack trace...step through the code and think about what is set to null (null is just that - you cannot call methods on a null reference)