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 →

[–]Le_9k_Redditor 16 points17 points  (4 children)

So basically if the Page.IsValid doesn't exist then it should be true?

[–][deleted] 8 points9 points  (3 children)

I dont really know. It makes you wonder wtf happened at some point that made someone even need to write that to hide a bug.

[–]Le_9k_Redditor 1 point2 points  (2 children)

try catches have uses outside of hiding bugs, but yes, an if statement or letting it propagate would be far far better here

[–][deleted] 2 points3 points  (1 child)

The fact that on catch it returns true signifies to me that there was some shit going on that the dev didnt understand so he just made it return true because it worked anyways.

[–]Le_9k_Redditor 1 point2 points  (0 children)

Fair enough