Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why NULL reference exception?
Message
 
 
À
27/06/2013 12:00:37
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01577321
Message ID:
01577323
Vues:
59
>>Hi everybody,
>>
>>I can not understand why do I have NULL reference exception on this line
>>
>>
>>Decimal bookingNo = 4000001;
>>         BookingRow bRow = bookings.GetBookingRow(bookingNo);
>>
>
>bookings is null I expect - put a breakpoint and use the debugger
>

:)

Yea, I put the breakpoint, but it never occurred to me that it was bookings that was null. I was wondering that something is wrong with the method or new class...

Thanks.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform