fix npe
add eclipse settings