[SVACE] Fix Issue #414638
authorjijoong.moon <jijoong.moon@samsung.com>
Tue, 23 Apr 2019 09:54:01 +0000 (18:54 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Tue, 23 Apr 2019 11:21:04 +0000 (20:21 +0900)
commit0570c3d77e1be0bc694a4695bfcc38565ffccc52
tree4f4a2a739eb1a6810e2ff9d0ae27cc4dba860584
parent097b94bff0f82fe05d5d55d07e6e6e08e79b554d
[SVACE] Fix Issue #414638

There is svace issuse said:
WID:66310552 Return value of a function 'g_slist_nth' is dereferenced
at tensor_common.c:1096 without checking, but it is usually checked
for this function (195/205).

Add Null check.

**Self evaluation:**
1. Build test:  [X]Passed [ ]Failed [ ]Skipped
2. Run test:  [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: jijoong.moon <jijoong.moon@samsung.com>
gst/nnstreamer/tensor_common.c