do not include blank fingerprints in AddRepo fingerprintRepoMap

This commit is contained in:
Hans-Christoph Steiner 2018-03-30 14:01:42 +02:00
parent 67a5156641
commit 258d2a41c3

View File

@ -241,7 +241,8 @@ public class ManageReposActivity extends AppCompatActivity
for (String url : repo.getMirrorList()) {
urlRepoMap.put(url, repo);
}
if (TextUtils.equals(getRepoType(newAddress), getRepoType(repo.address))) {
if (!TextUtils.isEmpty(repo.fingerprint)
&& TextUtils.equals(getRepoType(newAddress), getRepoType(repo.address))) {
fingerprintRepoMap.put(repo.fingerprint, repo);
}
}