mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 07:56:16 +00:00
Update ExtractRegistry.java
Add check for null for safety.
This commit is contained in:
parent
5cdd5ba613
commit
6d4593b657
@ -996,11 +996,11 @@ class ExtractRegistry extends Extract {
|
||||
while ((line != null) && (!line.contains(SECTION_DIVIDER))) {
|
||||
line = reader.readLine();
|
||||
line = line.trim();
|
||||
if (line.toLowerCase().contains("device unique id")) {
|
||||
if ((line != null) && (line.toLowerCase().contains("device unique id"))) {
|
||||
// Columns are seperated by colons :
|
||||
// Data : Values
|
||||
// Record is 4 lines in length (Device Unique Id, Name, Last Seen, LastConnected
|
||||
while (!line.contains(SECTION_DIVIDER) && !line.isEmpty() && !line.toLowerCase().contains("radio support not found")) {
|
||||
while (line != null && !line.contains(SECTION_DIVIDER) && !line.isEmpty() && !line.toLowerCase().contains("radio support not found")) {
|
||||
Collection<BlackboardAttribute> attributes = new ArrayList<>();
|
||||
addBlueToothAttribute(line, attributes, TSK_DEVICE_ID);
|
||||
line = reader.readLine();
|
||||
|
Loading…
x
Reference in New Issue
Block a user