Test fixes

This commit is contained in:
dragonmacher 2024-10-02 12:38:28 -04:00
parent 23b75ec040
commit cd93bb4abb
2 changed files with 7 additions and 2 deletions

View File

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -195,6 +195,10 @@ public class TreeManager implements ManagerDB {
*/
public String[] getTreeNames() {
String[] names = new String[treeMap.size()];
if (names.length == 0) {
return names;
}
try {
RecordIterator iter = treeAdapter.getRecords();

View File

@ -37,6 +37,7 @@ public class StubSymbol implements Symbol {
public StubSymbol(String name) {
this.name = name;
id = nextId++;
}
public StubSymbol(String name, Address address) {