Bug 279147 - [patch] [samples] array index out of range error 

Signed-off-by: Aditya Aswani <a.aswani@samsung.com>