Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libjitsi
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ZRTP
libjitsi
Commits
31c1460e
Commit
31c1460e
authored
12 years ago
by
Damian Minkov
Browse files
Options
Downloads
Patches
Plain Diff
Configuration service skips empty key names.
parent
566b354d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/org/jitsi/impl/configuration/SortedProperties.java
+19
-0
19 additions, 0 deletions
src/org/jitsi/impl/configuration/SortedProperties.java
with
19 additions
and
0 deletions
src/org/jitsi/impl/configuration/SortedProperties.java
+
19
−
0
View file @
31c1460e
...
...
@@ -48,4 +48,23 @@ public Object nextElement()
}
};
}
/**
* Do not allow putting empty String keys in the properties table.
* @param key the key
* @param value the value
* @return the previous value of the specified key in this hashtable,
* or <code>null</code> if it did not have one
*/
public
synchronized
Object
put
(
Object
key
,
Object
value
)
{
if
(
key
instanceof
String
&&
((
String
)
key
).
trim
().
length
()
==
0
)
{
// just skip the putting
return
null
;
}
return
super
.
put
(
key
,
value
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment