mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 07:56:16 +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();
|
String telephoneText = telephone.getText();
|
||||||
|
|
||||||
if (telephoneText == null || telephoneText.isEmpty()) {
|
if (telephoneText == null || telephoneText.isEmpty()) {
|
||||||
|
if (telephone.getUri() == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
telephoneText = telephone.getUri().getNumber();
|
telephoneText = telephone.getUri().getNumber();
|
||||||
if (telephoneText == null || telephoneText.isEmpty()) {
|
if (telephoneText == null || telephoneText.isEmpty()) {
|
||||||
return;
|
return;
|
||||||
@ -502,6 +505,9 @@ final class VcardParser {
|
|||||||
private void addPhoneAccountInstances(Telephone telephone, AbstractFile abstractFile, Collection<AccountFileInstance> accountInstances) {
|
private void addPhoneAccountInstances(Telephone telephone, AbstractFile abstractFile, Collection<AccountFileInstance> accountInstances) {
|
||||||
String telephoneText = telephone.getText();
|
String telephoneText = telephone.getText();
|
||||||
if (telephoneText == null || telephoneText.isEmpty()) {
|
if (telephoneText == null || telephoneText.isEmpty()) {
|
||||||
|
if (telephone.getUri() == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
telephoneText = telephone.getUri().getNumber();
|
telephoneText = telephone.getUri().getNumber();
|
||||||
if (telephoneText == null || telephoneText.isEmpty()) {
|
if (telephoneText == null || telephoneText.isEmpty()) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user