mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-06-01 06:34:58 +08:00
GP-6299: Bail from getPreviousLayout if there are no layouts.
This commit is contained in:
+3
@@ -196,6 +196,9 @@ public class AnchoredLayoutHandler {
|
|||||||
if (layout != null) {
|
if (layout != null) {
|
||||||
return new AnchoredLayout(layout, index, yPos - layout.getHeight());
|
return new AnchoredLayout(layout, index, yPos - layout.getHeight());
|
||||||
}
|
}
|
||||||
|
if (layouts.isEmpty()) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user