ARGUS-43:Fixed NPE during grant call without repo type

Signed-off-by: sneethiraj <sneethir@apache.org>