fixed a eclipse build NPE issue

fixed a eclipse build NPE issue