Check "sha" is not empty as well as checking for null
Check "sha" is not empty as well as checking for null

In my working copy the "sha" var was empty, not null and was throwing an exception.
mauricionr/kudu,uQr/kudu,chrisrpatterson/kudu,barnyp/kudu,EricSten-MSFT/kudu,oliver-feng/kudu,barnyp/kudu,kenegozi/kudu,kenegozi/kudu,puneet-gupta/kudu,badescuga/kudu,MavenRain/kudu,projectkudu/kudu,dev-enthusiast/kudu,shibayan/kudu,bbauya/kudu,duncansmart/kudu,barnyp/kudu,shrimpy/kudu,shrimpy/kudu,chrisrpatterson/kudu,shibayan/kudu,juoni/kudu,mauricionr/kudu,badescuga/kudu,shanselman/kudu,barnyp/kudu,shibayan/kudu,mauricionr/kudu,MavenRain/kudu,duncansmart/kudu,badescuga/kudu,chrisrpatterson/kudu,sitereactor/kudu,projectkudu/kudu,bbauya/kudu,MavenRain/kudu,EricSten-MSFT/kudu,juvchan/kudu,EricSten-MSFT/kudu,shanselman/kudu,projectkudu/kudu,shanselman/kudu,projectkudu/kudu,projectkudu/kudu,mauricionr/kudu,juoni/kudu,oliver-feng/kudu,sitereactor/kudu,YOTOV-LIMITED/kudu,puneet-gupta/kudu,puneet-gupta/kudu,uQr/kudu,juoni/kudu,juvchan/kudu,kali786516/kudu,shibayan/kudu,puneet-gupta/kudu,badescuga/kudu,juvchan/kudu,shrimpy/kudu,kali786516/kudu,badescuga/kudu,kali786516/kudu,kenegozi/kudu,EricSten-MSFT/kudu,kali786516/kudu,chrisrpatterson/kudu,puneet-gupta/kudu,YOTOV-LIMITED/kudu,oliver-feng/kudu,sitereactor/kudu,shibayan/kudu,duncansmart/kudu,kenegozi/kudu,oliver-feng/kudu,YOTOV-LIMITED/kudu,YOTOV-LIMITED/kudu,juoni/kudu,shrimpy/kudu,sitereactor/kudu,bbauya/kudu,uQr/kudu,sitereactor/kudu,dev-enthusiast/kudu,bbauya/kudu,juvchan/kudu,dev-enthusiast/kudu,EricSten-MSFT/kudu,MavenRain/kudu,duncansmart/kudu,uQr/kudu,juvchan/kudu,dev-enthusiast/kudu