[jbosstools-issues] [JBoss JIRA] (JBIDE-16689) Crash after CTRL + rightclick + find implementation

Edoardo Barolo (JIRA) issues at jboss.org
Thu Mar 6 10:58:33 EST 2014


    [ https://issues.jboss.org/browse/JBIDE-16689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12950780#comment-12950780 ] 

Edoardo Barolo commented on JBIDE-16689:
----------------------------------------

asked !! We attempt to crash again we are not able to reproduce...

But also to me it not crashes all times but after file system go out of sync from workspace and I do not refresh !! So ..I suggest to close this maybe I'll reopen when I will have another case

the code was this find function checkOraMinuti

function checkDateAfter(dataDa, dataA){
	if(!isNull(dataDa) && !isNull(dataA)){
		var giornoDa = dataDa.substring(0, 2);
		var meseDa = dataDa.substring(3, 5);
		var annoDa = dataDa.substring(6, 10);
		var oreDa = "00";
		var minutiDa = "00";
		if(dataDa.length>10){
			oreDa = dataDa.substring(11, 13);
			minutiDa = dataDa.substring(14, 16);
			if(!checkOraMinuti(oreDa, minutiDa)){ return false; }
		}
		var giornoA = dataA.substring(0, 2);
		var meseA = dataA.substring(3, 5);
		var annoA = dataA.substring(6, 10);
		var oreA = "00";
		var minutiA = "00";
		if(dataA.length>10){
			oreA = dataA.substring(11, 13);
			minutiA = dataA.substring(14, 16);
			if(!checkOraMinuti(oreA, minutiA)){ return false; }
		}
		var dif = new Date(annoA, meseA, giornoA, oreA, minutiA) 
			- new Date(annoDa, meseDa, giornoDa, oreDa, minutiDa);
		return (dif >= 0)
	}
	return true;
}

function checkOraMinuti(ore, minuti){
	return (parseInt(ore)>=0 && parseInt(ore)<=24) && (parseInt(minuti)>=0 && parseInt(ore)<=60);
}
                
> Crash after CTRL + rightclick + find implementation
> ---------------------------------------------------
>
>                 Key: JBIDE-16689
>                 URL: https://issues.jboss.org/browse/JBIDE-16689
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: upstream
>            Reporter: Edoardo Barolo
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list