File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ export class ClientLogWatcher {
2121 if ( logs ) {
2222 const info : any = { } ;
2323
24- const jdkLog = logs . find ( log => log . message . startsWith ( "Use the JDK from" ) ) ;
24+ const jdkLog = logs . find ( log => log . message ? .startsWith ( "Use the JDK from" ) ) ;
2525 info . defaultProjectJdk = jdkLog ?. message . replace ( "Use the JDK from '" , "" ) . replace ( "' as the initial default project JDK." , "" ) ;
2626
27- const startupLog = logs . find ( log => log . message . startsWith ( "Starting Java server with:" ) && log . message . endsWith ( "jdt_ws" ) /* limit to standard server */ ) ;
27+ const startupLog = logs . find ( log => log . message ? .startsWith ( "Starting Java server with:" ) && log . message . endsWith ( "jdt_ws" ) /* limit to standard server */ ) ;
2828 if ( startupLog ) {
2929 info . xmx = startupLog . message . match ( / - X m x [ 0 - 9 k m g K M G ] + / g) ?. [ 0 ] ;
3030 info . xms = startupLog . message . match ( / - X m s [ 0 - 9 k m g K M G ] + / g) ?. [ 0 ] ;
@@ -36,11 +36,11 @@ export class ClientLogWatcher {
3636 info . error = errorLog ? "true" : undefined ;
3737
3838 const missingJar = "Error opening zip file or JAR manifest missing" ; // lombok especially
39- if ( logs . find ( log => log . message . startsWith ( missingJar ) ) ) {
39+ if ( logs . find ( log => log . message ? .startsWith ( missingJar ) ) ) {
4040 info . error = missingJar ;
4141 }
4242
43- const crashLog = logs . find ( log => log . message . startsWith ( "The Language Support for Java server crashed and will restart." ) ) ;
43+ const crashLog = logs . find ( log => log . message ? .startsWith ( "The Language Support for Java server crashed and will restart." ) ) ;
4444 info . crash = crashLog ? "true" : undefined ;
4545
4646 sendInfo ( "" , {
You can’t perform that action at this time.
0 commit comments