Home > Net >  Bosses, there is a small can help solve the problem?
Bosses, there is a small can help solve the problem?

Time:09-20

Where this is wrong? The userinfo can access to the index page, but to switch to the orderinfo at this wrong?

CodePudding user response:

CodePudding user response:

Some debugging, to see which location there is empty

CodePudding user response:

Currentdal or wherelambda is null or not

CodePudding user response:

A object is null

CodePudding user response:

1, not the object reference to an instance of an object, the error happened almost every day, is a particular object is null, you can access its properties or methods,,
The error, whether the object in the route is initialized to find trouble, or failed to perform a method return null, you in the back and use by the return value of this method,,,,

In a word, just looking for who is null,

2, learn to see the stack information,


Told you all the code file, line number,,,
Also tell you the tracking sequence,,,
Do you still looking for what?
Debugging, this line breakpoints, watch memory,,,

CodePudding user response:

Look at your OrderInfoController code inside, parameters passed is null

CodePudding user response:

Add a breakpoint, F10 + F11 check down slowly, look I returned to the null values,