Uploaded image for project: 'Qt Tools for Android'
  1. Qt Tools for Android
  2. QTTA-325

qtNinjaPath is null in build() if CMAKE_MAKE_PROGRAM is defined in extraCMakeArguments

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • None
    • QtGP 1.2
    • QtGP: General
    • None
    • Android, macOS
    • e7cdb8e33 (dev), 2a3b45958 (1.2)

    Description

      Steps to reproduce:

      1. Include CMAKE_MAKE_PROGRAM in extraCMakeArguments, e.g. 
        extraCMakeArguments = ['-DCMAKE_MAKE_PROGRAM=/opt/homebrew/bin/ninja']
      2. Gradle sync
      3. Run the app

      Expected:

          Build succeeds and app runs

      Actual:

          QtGP crashes

       

      * Exception is:
      org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:QtBuildTask'.
      Caused by: java.lang.NullPointerException: Cannot invoke "Object.toString()" because the return value of "java.util.List.get(int)" is null
      	at org.qtproject.qt.gradleplugin.QtBuildTask.exec(QtBuildTask.groovy:285)
      	at org.qtproject.qt.gradleplugin.QtBuildTask$exec$5.callCurrent(Unknown Source)
      	at org.qtproject.qt.gradleplugin.QtBuildTask.build(QtBuildTask.groovy:44)

      Because resolveNinjaPath is never called in this case, it's still null in the build() function.

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            nikunj Nikunj Arora
            olvuolte Olli Vuolteenaho
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes