aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/entity/jid.vala
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2017-08-12 23:14:50 +0200
committerfiaxh <git@mx.ax.lt>2017-08-14 22:38:12 +0200
commita59f728bdd7b81964a460b96b6c56da0d9dfda01 (patch)
tree21f1e2bd3a83a296f87f1a0307f258f0732dff24 /libdino/src/entity/jid.vala
parent6904bda756321c67bea0108342fa9ba859dd66e9 (diff)
downloaddino-a59f728bdd7b81964a460b96b6c56da0d9dfda01.tar.gz
dino-a59f728bdd7b81964a460b96b6c56da0d9dfda01.zip
Stream Management
Diffstat (limited to 'libdino/src/entity/jid.vala')
-rw-r--r--libdino/src/entity/jid.vala8
1 files changed, 4 insertions, 4 deletions
diff --git a/libdino/src/entity/jid.vala b/libdino/src/entity/jid.vala
index 2283b466..42218fb2 100644
--- a/libdino/src/entity/jid.vala
+++ b/libdino/src/entity/jid.vala
@@ -63,12 +63,12 @@ public class Dino.Entities.Jid : Object {
return jid;
}
- public bool equals_bare(Jid jid) {
- return equals_bare_func(this, jid);
+ public bool equals_bare(Jid? jid) {
+ return jid != null && equals_bare_func(this, jid);
}
- public bool equals(Jid jid) {
- return equals_func(this, jid);
+ public bool equals(Jid? jid) {
+ return jid != null && equals_func(this, jid);
}
public static new bool equals_bare_func(Jid jid1, Jid jid2) {