File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -375,7 +375,7 @@ export default class IBMiContent {
375
375
` ;
376
376
const results = await this . ibmi . runSQL ( statement ) ;
377
377
378
- const asp = this . ibmi . getIAspName ( Number ( results [ 0 ] . IASP_NUMBER ) ) ;
378
+ const asp = this . ibmi . getIAspName ( Number ( results [ 0 ] ? .IASP_NUMBER ) ) ;
379
379
380
380
objects = results . map ( object => ( {
381
381
library : 'QSYS' ,
@@ -578,7 +578,7 @@ export default class IBMiContent {
578
578
579
579
const objects = ( await this . runStatements ( createOBJLIST . join ( `\n` ) ) ) ;
580
580
581
- const asp = this . ibmi . getIAspName ( Number ( objects [ 0 ] . IASP_NUMBER ) ) ;
581
+ const asp = this . ibmi . getIAspName ( Number ( objects [ 0 ] ? .IASP_NUMBER ) ) ;
582
582
583
583
return objects . map ( object => ( {
584
584
library,
@@ -652,7 +652,7 @@ export default class IBMiContent {
652
652
653
653
const results = await this . ibmi . runSQL ( statement ) ;
654
654
if ( results . length ) {
655
- const asp = this . ibmi . getIAspName ( Number ( results [ 0 ] . ASP ) ) ;
655
+ const asp = this . ibmi . getIAspName ( Number ( results [ 0 ] ? .ASP ) ) ;
656
656
return results . map ( result => ( {
657
657
asp,
658
658
library,
@@ -695,7 +695,7 @@ export default class IBMiContent {
695
695
696
696
if ( results . length === 1 && results [ 0 ] . ISSOURCE === 'Y' ) {
697
697
const result = results [ 0 ] ;
698
- const asp = this . ibmi . getIAspName ( Number ( results [ 0 ] . ASP ) ) ;
698
+ const asp = this . ibmi . getIAspName ( Number ( results [ 0 ] ? .ASP ) ) ;
699
699
return {
700
700
library : result . LIBRARY ,
701
701
file : result . FILE ,
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ export class GetMemberInfo extends IBMiComponent {
64
64
65
65
if ( results . length === 1 && results [ 0 ] . ISSOURCE === 'Y' ) {
66
66
const result = results [ 0 ] ;
67
- const asp = this . connection . getIAspName ( Number ( results [ 0 ] . ASP ) )
67
+ const asp = this . connection . getIAspName ( Number ( results [ 0 ] ? .ASP ) )
68
68
return {
69
69
asp,
70
70
library : result . LIBRARY ,
You can’t perform that action at this time.
0 commit comments