diff --git a/core/net/ip/uip-debug.c b/core/net/ip/uip-debug.c index 6460f2bb4..b1c828e3f 100644 --- a/core/net/ip/uip-debug.c +++ b/core/net/ip/uip-debug.c @@ -75,6 +75,10 @@ void uip_debug_lladdr_print(const uip_lladdr_t *addr) { unsigned int i; + if(addr == NULL) { + printf("(NULL LL addr)"); + return; + } for(i = 0; i < sizeof(uip_lladdr_t); i++) { if(i > 0) { PRINTA(":");