mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Fix bug: Crash & quit while handling exception with undefine msg.error. i.e. flow with 3 nodes, http-in, delay 5-10s, http-out; client with 3s timeout request the flow; TypeError: Cannot read property 'hasOwnProperty' of undefined\r at Flow.handleError (/usr/src/node-red/node_modules/@node-red/runtime/lib/flows/Flow.js:474:27)
This commit is contained in:
		@@ -470,8 +470,8 @@ class Flow {
 | 
			
		||||
        }
 | 
			
		||||
        // console.log("HE",logMessage);
 | 
			
		||||
        var count = 1;
 | 
			
		||||
        if (msg && msg.hasOwnProperty("error") && msg.error !== null) {
 | 
			
		||||
            if (msg.error.hasOwnProperty("source") && msg.error.source !== null) {
 | 
			
		||||
        if (msg && msg.hasOwnProperty("error") && msg.error) {
 | 
			
		||||
            if (msg.error.hasOwnProperty("source") && msg.error.source) {
 | 
			
		||||
                if (msg.error.source.id === node.id) {
 | 
			
		||||
                    count = msg.error.source.count+1;
 | 
			
		||||
                    if (count === 10) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user