fix some null pointer errors when there is no sdk defined
fix some null pointer errors when there is no sdk defined

internetisalie/lua-for-idea,internetisalie/lua-for-idea,internetisalie/lua-for-idea,internetisalie/lua-for-idea