don't use a constant that isn't available in Eclipse 3.8
Fix a potential NPE