Commit f5f6e597 authored by Karsten Loesing's avatar Karsten Loesing
Browse files

Fix possible NPE in tests.

parent d6e9a0d7
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -453,6 +453,9 @@ public class ServerDescriptorImplTest {
    private ServerDescriptorImpl buildDescriptor()
        throws DescriptorParseException {
      byte[] descriptorBytes = this.buildDescriptorBytes();
      if (null == descriptorBytes) {
        descriptorBytes = new byte[0];
      }
      return new RelayServerDescriptorImpl(descriptorBytes,
          new int[] { 0, descriptorBytes.length }, null);
    }