Code Monkey home page Code Monkey logo

Comments (2)

pirtnea avatar pirtnea commented on June 21, 2024

I tried to replicate this on my computer and I'm not getting any errors after opening or running the non-TMC project. Did this appear right after opening the non-TMC project window or did you do something else to trigger the problem?

from tmc-intellij.

pihvi avatar pihvi commented on June 21, 2024

I don't think I did anything else. But looking at where the error comes from, maybe you can think of a case where returned projects array is empty, then this error will happen here:

https://github.com/testmycode/tmc-intellij/blob/master/tmc-plugin-intellij/src/main/java/fi/helsinki/cs/tmc/intellij/services/ObjectFinder.java#L174

That is, there is a possibility for that index out of bounds case, when the returned project array is an empty array and maybe it should be checked in any case.. I don't know why was that code executed when I opened another non TMC project while one TMC project was open or why did it return an empty array in that case. But an easy fix for now would be to check if the array is non empty before trying to return its last value.

from tmc-intellij.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.