Added simple validation to prevent 'segmentation fault' error when no argument was provided.
Added simple validation to prevent 'segmentation fault' error when no argument was provided.

RodolfoDiaz/codelibrary,RodolfoDiaz/codelibrary,RodolfoDiaz/codelibrary,RodolfoDiaz/codelibrary,RodolfoDiaz/codelibrary,RodolfoDiaz/codelibrary,RodolfoDiaz/codelibrary