osmo_util:pointcode2int(undefined) -> undefined
diff --git a/src/osmo_util.erl b/src/osmo_util.erl
index 3c12952..584f9ec 100644
--- a/src/osmo_util.erl
+++ b/src/osmo_util.erl
@@ -145,6 +145,8 @@
 % parse a 3-tuple pointcode into a raw integer
 pointcode2int(Int) when is_integer(Int) ->
 	Int;
+pointcode2int(undefined) ->
+	undefined;
 pointcode2int(#pointcode{repr=Type, value=Value}) ->
 	pointcode2int(Type, Value);
 pointcode2int({Std, Param}) ->