Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b38b719a authored by Ricki Hirner's avatar Ricki Hirner
Browse files

Null-pointer check for SIP address types (fixes #506)

parent 3779d5c9
Loading
Loading
Loading
Loading
+13 −12
Original line number Diff line number Diff line
@@ -635,6 +635,7 @@ public class LocalAddressBook extends LocalCollection<Contact> {
	protected void populateSipAddress(Contact c, ContentValues row) {
		try {
			Impp impp = new Impp("sip:" + row.getAsString(SipAddress.SIP_ADDRESS));
			if (row.containsKey(SipAddress.TYPE))
				switch (row.getAsInteger(SipAddress.TYPE)) {
					case SipAddress.TYPE_HOME:
						impp.addType(ImppType.HOME);