Pour ne pas avoir de pb de nullPointer :


if (! "".equals(ce.toString()))