diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2008-04-14 02:08:07 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2008-04-14 02:08:07 +0000 |
commit | 7d405b6f8e3208f288b0a122bd2642b7b19800aa (patch) | |
tree | 9674504b763820675f330d826b368424559884de /src | |
parent | 6af3a8bd605f17d04b4d852e8d402ee6aab1ed11 (diff) | |
download | jackcess-7d405b6f8e3208f288b0a122bd2642b7b19800aa.tar.gz jackcess-7d405b6f8e3208f288b0a122bd2642b7b19800aa.zip |
tweak tostring
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@324 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src')
-rw-r--r-- | src/java/com/healthmarketscience/jackcess/Index.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/java/com/healthmarketscience/jackcess/Index.java b/src/java/com/healthmarketscience/jackcess/Index.java index 9e6f19f..9eb3ca1 100644 --- a/src/java/com/healthmarketscience/jackcess/Index.java +++ b/src/java/com/healthmarketscience/jackcess/Index.java @@ -2237,8 +2237,10 @@ public abstract class Index implements Comparable<Index> { return (isLeaf() ? "Leaf" : "Node") + "DataPage[" + getPageNumber() + "] " + getPrevPageNumber() + ", " + getNextPageNumber() + ", (" + getChildTailPageNumber() + "), " + - (isLeaf() ? ("[" + entries.get(0) + ", " + - entries.get(entries.size() - 1) + "]") : entries); + ((isLeaf() && !entries.isEmpty()) ? + ("[" + entries.get(0) + ", " + + entries.get(entries.size() - 1) + "]") : + entries); } } |