Skip to content

Commit

Permalink
Resolution of bug 2182705: Null ID on DB2 views
Browse files Browse the repository at this point in the history
  • Loading branch information
johncurrier committed Oct 20, 2008
1 parent cf91dec commit e788544
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/net/sourceforge/schemaspy/view/HtmlMainIndexPage.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,11 @@ private void writeLineItem(Table table, boolean showIds, LineWriter html) throws

if (showIds) {
html.write(" <td class='detail' align='right'>");
html.write(String.valueOf(table.getId()));
Object id = table.getId();
if (id != null)
html.write(String.valueOf(id));
else
html.writeln("&nbsp;");
html.writeln("</td>");
}

Expand Down

0 comments on commit e788544

Please sign in to comment.