Modified error and incorporated short circuiting
Modified error and incorporated short circuiting

PrashantJalan/CtoJVM,PrashantJalan/CtoJVM,PrashantJalan/CtoJVM,PrashantJalan/CtoJVM,PrashantJalan/CtoJVM