We can't tell, exactly - because we don't have access to your running code.
You do - so use the debugger. Put a breakpoint on the the line:
GWMsgDetails = SCANLA.GatewayMsgIDs.ResponseTimeofMsgs(numofBusesandColor.numofbuses);
and run your program.
When it hits the breakpoint, use the debugger to look at each part in sequence, starting from the left:
SCANLA
SCANLA.GatewayMsgIDs
Onle of them will be null, or will return null. Then all you have to do is look through your code and find out why.
We can't: we don't have access to your HDD!