File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,10 @@ export class NamespaceHttp extends Http implements NamespaceRepository {
176176 this . namespaceRoutesApi . getNamespace ( namespaceId . toHex ( ) ) ) . pipe (
177177 map ( ( namespaceInfoDTO ) => {
178178
179+ if ( namespaceInfoDTO . namespace === undefined ) {
180+ throw namespaceInfoDTO ;
181+ }
182+
179183 if ( namespaceInfoDTO . namespace . alias . type === AliasType . Mosaic ) {
180184 return new MosaicId ( namespaceInfoDTO . namespace . alias . mosaicId ) ;
181185 }
@@ -195,6 +199,10 @@ export class NamespaceHttp extends Http implements NamespaceRepository {
195199 this . namespaceRoutesApi . getNamespace ( namespaceId . toHex ( ) ) ) . pipe (
196200 map ( ( namespaceInfoDTO ) => {
197201
202+ if ( namespaceInfoDTO . namespace === undefined ) {
203+ throw namespaceInfoDTO ;
204+ }
205+
198206 if ( namespaceInfoDTO . namespace . alias . type === AliasType . Address ) {
199207 return Address . createFromRawAddress ( namespaceInfoDTO . namespace . alias . address ) ;
200208 }
You can’t perform that action at this time.
0 commit comments