MarcelRosenberger opened a new issue, #1536:
URL: https://github.com/apache/camel-karavan/issues/1536

   ### Describe the bug
   
   When running karavan on Windows and connecting to a Git-Repository with an 
existing project, no project is shown in karavan.
   
   In windows-filesystem `\` is used as file separator whereas in git the path 
is always using `/`.
   
   The correct root folder for projects in `readProjectsFromRepository` must 
use `\` on windows otherwise the `folder` variable points to the hidden 
`\.git`-folder which contains "branches", "hooks", "logs", ... but not the 
projects.
   On the other hand, when using jgit the path must always use `/` for windows, 
unix and mac otherwise the last commits cannot be found.
   
   
   
   ### Steps to reproduce the behavior
   
   1. Create a project in a git repository
   2. Set the configuration to point to this repository
   3. Start karavan
   4. See error
   
   
   
   
   ### Variant
   
   Web Application
   
   ### Container Management (if applicable)
   
   Docker
   
   ### Operating System (if applicable)
   
   Windows
   
   ### Version
   
   4.10.2
   
   ### Relevant log output
   
   ```shell
   2025-06-23 17:19:23,582 ERROR [org.apa.cam.kar.ser.GitService] (Quarkus Main 
Thread) Error: java.lang.NullPointerException: Cannot invoke 
"io.smallrye.mutiny.tuples.Tuple2.getItem1()" because "commit" is null
        at 
org.apache.camel.karavan.service.GitService.readProjectsFromRepository(GitService.java:180)
        at 
org.apache.camel.karavan.service.GitService.readProjectsToImport(GitService.java:154)
        at 
org.apache.camel.karavan.service.GitService_ClientProxy.readProjectsToImport(Unknown
 Source)
        at 
org.apache.camel.karavan.KaravanStartupLoader.importAllProjects(KaravanStartupLoader.java:122)
        at 
org.apache.camel.karavan.KaravanStartupLoader.tryStart(KaravanStartupLoader.java:104)
        at 
org.apache.camel.karavan.KaravanStartupLoader.onStart(KaravanStartupLoader.java:93)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to