This looks like a NPE waiting to happen