Why am I getting this null reference error?

+1 vote

NullReferenceException: Object reference not set to an instance of an object

ServiceAPI sp = null;
StorageService storageService = null// Initializing Storage Service.
    

void Update(){

    storageService = sp.BuildStorageService();

    }

 

I'm getting the null reference error for the storageService = sp.BuildStorageService(); but I have it set up exactly like this in other scripts and it works fine. 

just needed sp = new ServiceAPI(*,*)

closed with the note: answered
asked Mar 11, 2014 in App42 Cloud API-BaaS by JoeCrill (25 points)
closed Mar 11, 2014 by JoeCrill
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...