Revision 820
Added by bojilova over 23 years ago
src/edu/ucsb/nceas/metacat/DBQuery.java | ||
---|---|---|
452 | 452 |
document.append("<triple>"); |
453 | 453 |
document.append("<subject>").append(sub); |
454 | 454 |
document.append("</subject>"); |
455 |
if (!subDT.equals("null")) { |
|
455 |
//if (!subDT.equals("null")) { |
|
456 |
if ( subDT != null ) { |
|
456 | 457 |
document.append("<subjectdoctype>").append(subDT); |
457 | 458 |
document.append("</subjectdoctype>"); |
458 | 459 |
} |
... | ... | |
460 | 461 |
document.append("</relationship>"); |
461 | 462 |
document.append("<object>").append(obj); |
462 | 463 |
document.append("</object>"); |
463 |
if (!objDT.equals("null")) { |
|
464 |
//if (!objDT.equals("null")) { |
|
465 |
if ( objDT != null ) { |
|
464 | 466 |
document.append("<objectdoctype>").append(objDT); |
465 | 467 |
document.append("</objectdoctype>"); |
466 | 468 |
} |
Also available in: Unified diff
fixed an error of NullPointerException