/*
- * Copyright © 2020 Damyan Ivanov.
+ * Copyright © 2021 Damyan Ivanov.
* This file is part of MoLe.
* MoLe is free software: you can distribute it and/or modify it
* under the term of the GNU General Public License as published by
public static ParsedLedgerTransaction fromLedgerTransaction(LedgerTransaction tr) {
ParsedLedgerTransaction
result = new ParsedLedgerTransaction();
- result.setTcomment(tr.getComment());
+ result.setTcomment(Misc.nullIsEmpty(tr.getComment()));
result.setTprecedingcomment("");
ArrayList<ParsedPosting> postings = new ArrayList<>();
/*
- * Copyright © 2020 Damyan Ivanov.
+ * Copyright © 2021 Damyan Ivanov.
* This file is part of MoLe.
* MoLe is free software: you can distribute it and/or modify it
* under the term of the GNU General Public License as published by
}
public static ParsedLedgerTransaction fromLedgerTransaction(LedgerTransaction tr) {
ParsedLedgerTransaction result = new ParsedLedgerTransaction();
- result.setTcomment(tr.getComment());
+ result.setTcomment(Misc.nullIsEmpty(tr.getComment()));
result.setTprecedingcomment("");
ArrayList<ParsedPosting> postings = new ArrayList<>();
/*
- * Copyright © 2020 Damyan Ivanov.
+ * Copyright © 2021 Damyan Ivanov.
* This file is part of MoLe.
* MoLe is free software: you can distribute it and/or modify it
* under the term of the GNU General Public License as published by
}
public static ParsedLedgerTransaction fromLedgerTransaction(LedgerTransaction tr) {
ParsedLedgerTransaction result = new ParsedLedgerTransaction();
- result.setTcomment(tr.getComment());
+ result.setTcomment(Misc.nullIsEmpty(tr.getComment()));
result.setTprecedingcomment("");
ArrayList<ParsedPosting> postings = new ArrayList<>();