Dealt with potential NPE in LinkedException