projects
/
org.ibex.core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
0db31fc
)
check getUri() result for null
author
crawshaw
<crawshaw@ibex.org>
Sat, 8 Jan 2005 10:04:31 +0000
(10:04 +0000)
committer
crawshaw
<crawshaw@ibex.org>
Sat, 8 Jan 2005 10:04:31 +0000
(10:04 +0000)
darcs-hash:
20050108100431
-2eb37-
0d094f03498056461650553fa9b1bb3bffa378c5
.gz
src/org/ibex/core/Template.java
patch
|
blob
|
history
diff --git
a/src/org/ibex/core/Template.java
b/src/org/ibex/core/Template.java
index
aca83ba
..
1b70f30
100644
(file)
--- a/
src/org/ibex/core/Template.java
+++ b/
src/org/ibex/core/Template.java
@@
-207,7
+207,8
@@
public class Template {
// FIXME: This is all wrong
if (!("ibex://ui".equals(c.getUri()) && "box".equals(c.getLocalName()))) {
// FIXME: This is all wrong
if (!("ibex://ui".equals(c.getUri()) && "box".equals(c.getLocalName()))) {
- String tagname = (c.getUri().equals("") ? "" : (c.getUri() + ".")) + c.getLocalName();
+ String tagname = (c.getUri() == null || "".equals(c.getUri()) ? "" :
+ (c.getUri() + ".")) + c.getLocalName();
// GROSS hack
try {
// GROSSER hack
// GROSS hack
try {
// GROSSER hack
@@
-248,7
+249,7
@@
public class Template {
}
// treat value starting with '.' as resource reference
}
// treat value starting with '.' as resource reference
- String uri = a.getUri(i); if (!uri.equals("")) uri = '.' + uri;
+ String uri = a.getUri(i); if (uri != null && !uri.equals("")) uri = '.' + uri;
keys.add(a.getKey(i));
vals.add((a.getVal(i).startsWith(".") ? uri : "") + a.getVal(i));
}
keys.add(a.getKey(i));
vals.add((a.getVal(i).startsWith(".") ? uri : "") + a.getVal(i));
}