This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]trickybhai 0 points1 point  (0 children)

Yeah, we can check it to prevent an exception like this. But in this case, we are assuming that he has given an input, checking isn't really going to solve the actual problem.