add test case for null object in getstaticcode