If you debug, you should be able to get the precise line where the variable is NULL and mistake is being lifted. For now, with your circumstance, following has large possible: There is An array of different ways to determine What's going on. Let's look at the mostly used kinds. http://charlieitboe.isblog.net/5-easy-facts-about-at-alspro-clsals-loadsys-described-23137291