Home > Back-end >  How to avoid any null pointer
How to avoid any null pointer

Time:04-01

Such as: how to avoid the project finished after various parts of the null pointer exception,

CodePudding user response:

Can share, the approach used in their work

CodePudding user response:

This is can't completely avoid, mainly through code experience to avoid

CodePudding user response:

Logic without bug, basic all sorts of bugs are out on a null pointer, waves it empty judgment, finally feel code is not very friendly

CodePudding user response:

refer to the second floor KeepSayingNo response:
this is unable to completely avoid, mainly through code experience to avoid
logic without bug, basic all sorts of bugs are out on a null pointer, waves of judgment is empty, the last feeling code becomes very unfriendly

CodePudding user response:

The role of experience came out at this time, if possible, make a judgment on here in advance, should not do a project npe are everywhere, calibration failed to do, whether it needs to be morally from source control

CodePudding user response:

The results of the query, must do judgment

CodePudding user response:

reference 5 floor Farmermark993 reply:
this experience when it came out, if possible, make a judgment on here ahead of time, should not work on a project is full of npe, if check failed to do, it needs from the source control morally
is, check don't have time to do, alignment, the first to pit to death,

CodePudding user response:

refer to the sixth floor of seven of the world, I'll take ninety-nine response:
the results of the query, must do judgment
have logic to really cool, with one... and then think the query, I it's really cool logic was stuck a small thorn
  • Related