Update of /cvsroot/beepcore-java/beepcore-java/src/org/beepcore/beep/core
In directory usw-pr-cvs1:/tmp/cvs-serv6839
Modified Files:
ProfileRegistry.java
Log Message:
Fixed bug for empty tuning properties
Index: ProfileRegistry.java
===================================================================
RCS file: /cvsroot/beepcore-java/beepcore-java/src/org/beepcore/beep/core/ProfileRegistry.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** ProfileRegistry.java 2001/07/27 06:17:40 1.5
--- ProfileRegistry.java 2001/07/30 13:00:07 1.6
***************
*** 20,23 ****
--- 20,24 ----
import java.util.Enumeration;
import java.util.Hashtable;
+ import org.beepcore.beep.util.Log;
***************
*** 127,131 ****
// if there are no qualifications, then just return the listener
! if (profile.tuning == null) {
return ((InternalProfile) profileListeners.get(uri)).listener;
}
--- 128,132 ----
// if there are no qualifications, then just return the listener
! if (profile.tuning == null || profile.tuning.isEmpty()) {
return ((InternalProfile) profileListeners.get(uri)).listener;
}
***************
*** 134,137 ****
--- 135,140 ----
// have anything, then return null
if (tuning == null) {
+ Log.logEntry(Log.SEV_DEBUG,
+ "Session does not have any tuning properties");
return null;
}
***************
*** 148,151 ****
--- 151,157 ----
== null))
{
+ Log.logEntry(Log.SEV_DEBUG,
+ "Session does not have tuning property " +
+ SessionTuningProperties.STANDARD_PROPERTIES[i]);
return null;
}
***************
*** 187,193 ****
tempProfile.listener = listener;
- if (tuning == null) {
- tuning = SessionTuningProperties.emptyTuningProperties;
- }
tempProfile.tuning = tuning;
--- 193,196 ----
|