there is no result. use try/catch to catch the exception.
DrawFreeSpace dfs = null; try{ dfs = (DrawFreeSpace)query.getSingleResult() } catch (NoResultException e){ }