You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2007/02/15 19:04:30 UTC
svn commit: r508055 -
/lenya/trunk/src/modules-core/ac/java/src/org/apache/lenya/ac/file/FileAccreditableManager.java
Author: andreas
Date: Thu Feb 15 10:04:30 2007
New Revision: 508055
URL: http://svn.apache.org/viewvc?view=rev&rev=508055
Log:
Use method to access configuration directory instead of field. This avoids a null value problem. See bug 41436. Thanks to Richard Frovarp for the patch.
Modified:
lenya/trunk/src/modules-core/ac/java/src/org/apache/lenya/ac/file/FileAccreditableManager.java
Modified: lenya/trunk/src/modules-core/ac/java/src/org/apache/lenya/ac/file/FileAccreditableManager.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/ac/java/src/org/apache/lenya/ac/file/FileAccreditableManager.java?view=diff&rev=508055&r1=508054&r2=508055
==============================================================================
--- lenya/trunk/src/modules-core/ac/java/src/org/apache/lenya/ac/file/FileAccreditableManager.java (original)
+++ lenya/trunk/src/modules-core/ac/java/src/org/apache/lenya/ac/file/FileAccreditableManager.java Thu Feb 15 10:04:30 2007
@@ -194,9 +194,12 @@
public String getId() {
try {
- Assert.notNull("configuration directory", this.configurationDirectory);
- return this.configurationDirectory.getCanonicalPath();
+ Assert.notNull("configuration directory", this.getConfigurationDirectory());
+ return this.getConfigurationDirectory().getCanonicalPath();
} catch (IOException e) {
+ throw new RuntimeException(e);
+ }
+ catch(AccessControlException e) {
throw new RuntimeException(e);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org