no message
Revert "no message"

This reverts commit 9de6e6132013a01261bcdd4a2c5007e4f0a8ab01.
fix scan function to avoid exception if there is no scan data in content.