check nil

pull/314/head
Darien Raymond 2016-09-24 23:36:26 +02:00
parent 24e575f2cd
commit 5e9017720e
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 5 additions and 1 deletions

View File

@ -5,5 +5,9 @@ import (
)
func (this *Config) GetPredefinedAddress() v2net.Address {
return this.Address.AsAddress()
addr := this.Address.AsAddress()
if addr == nil {
return nil
}
return addr
}