Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
I
iTasks-SDK
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 73
    • Issues 73
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 6
    • Merge Requests 6
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • clean-and-itasks
  • iTasks-SDK
  • Issues
  • #116

Closed
Open
Opened May 18, 2017 by Steffen Michels@smichelsMaintainer

editSharedChoiceWithShared crashes

When selecting an item "editSharedChoiceWithShared" crashes with "Subscript error in !!,index too large". The call to !! is done in iTasks.API.Common.InteractionTasks in the function "findSelection":

findSelection target options idxs = [target (options !! idx) \ idx <- idxs]

The problem occurs, because "options" is empty but "idxs" not. It it not clear to me why options can be empty and idxs not. Adding this case does not only prevent the crash, but also everything seems to work as expected then:

findSelection _ [] _ = []

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: clean-and-itasks/iTasks-SDK#116