mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Update VcardParser.java
Check if telephone uri is null and return if it is.
This commit is contained in:
parent
775e28a99f
commit
0fea6d4525
@ -388,6 +388,9 @@ final class VcardParser {
|
||||
String telephoneText = telephone.getText();
|
||||
|
||||
if (telephoneText == null || telephoneText.isEmpty()) {
|
||||
if (telephone.getUri() == null) {
|
||||
return;
|
||||
}
|
||||
telephoneText = telephone.getUri().getNumber();
|
||||
if (telephoneText == null || telephoneText.isEmpty()) {
|
||||
return;
|
||||
@ -502,6 +505,9 @@ final class VcardParser {
|
||||
private void addPhoneAccountInstances(Telephone telephone, AbstractFile abstractFile, Collection<AccountFileInstance> accountInstances) {
|
||||
String telephoneText = telephone.getText();
|
||||
if (telephoneText == null || telephoneText.isEmpty()) {
|
||||
if (telephone.getUri() == null) {
|
||||
return;
|
||||
}
|
||||
telephoneText = telephone.getUri().getNumber();
|
||||
if (telephoneText == null || telephoneText.isEmpty()) {
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user