• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

How to fix “Unhandled Exception: System.NullReferenceException” error in c# Ide

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I compile the code using this Ide(https://ide.geeksforgeeks.org/), It shows "Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object" But when I run the code in visual studio, everything is ok. How can I solve these problems? Thanks.

My Code link: https://ide.geeksforgeeks.org/urPtGjTQmu
 
Marshal
Posts: 64680
225
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post your code; people are reluctant to open links like that. Be sure to show which line has the warning on.
What sort of IDE is it? If it is anything like some of the Java® online interpreters I have seen, it may not compile the code correctly.
 
Saloon Keeper
Posts: 10308
217
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What input did you use?
 
Nahid alam
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Stephan van Hulst wrote:What input did you use?


Thanks a lot. It worked.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!