Skip to content

Commit

Permalink
Skip comment or empty lines
Browse files Browse the repository at this point in the history
  • Loading branch information
CreatedBySeb authored and Ziemas committed Nov 13, 2024
1 parent c017670 commit 2ed8624
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/ghidra_irx/ModuleDB.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ public ModuleDB(File file) throws IOException {
BufferedReader reader = new BufferedReader(new FileReader(file));

String line = "";
while ( (line = reader.readLine()) != null)
while ((line = reader.readLine()) != null)
{
if (line.trim().length() == 0 || line.charAt(0) == '#') {
continue;
}

String[] entry = line.split(" ");
if (!db.containsKey(entry[0])) {
db.put(entry[0], new Hashtable<>());
Expand Down

0 comments on commit 2ed8624

Please sign in to comment.