removed extra parameters from getNFA

getNFA function changed so as to not pass object or null as against the
last commit done