w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Null reference error "Object reference not set to an instance of an object" accessing Model while loading a view

You need to initialize the Model I suppose, just like we do in C#: Suppose we have a class, then we initialize the same like:

Model m1= new Model();

Make sure you check the null also for all items you are passing.

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.