-
Notifications
You must be signed in to change notification settings - Fork 569
Closed
Description
Hi Roberto,
When removing blobs bigger than 1MB in my repo I get the following NPE.
I have not had a look at your code so I am not sure if it comes from JGit or BFG.
You'll find at the bottom the command line used that generated this exception.
[echo] Exception in thread "main" java.lang.NullPointerException
[echo] at org.eclipse.jgit.internal.storage.file.UnpackedObjectCache$Table.index(UnpackedObjectCache.java:146)
[echo] at org.eclipse.jgit.internal.storage.file.UnpackedObjectCache$Table.contains(UnpackedObjectCache.java:109)
[echo] at org.eclipse.jgit.internal.storage.file.UnpackedObjectCache.isUnpacked(UnpackedObjectCache.java:64)
[echo] at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openObject1(ObjectDirectory.java:359)
[echo] at org.eclipse.jgit.internal.storage.file.FileObjectDatabase.openObjectImpl1(FileObjectDatabase.java:173)
[echo] at org.eclipse.jgit.internal.storage.file.FileObjectDatabase.openObject(FileObjectDatabase.java:158)
[echo] at org.eclipse.jgit.internal.storage.file.WindowCursor.open(WindowCursor.java:145)
[echo] at org.eclipse.jgit.treewalk.CanonicalTreeParser.reset(CanonicalTreeParser.java:201)
[echo] at org.eclipse.jgit.treewalk.TreeWalk.parserFor(TreeWalk.java:984)
[echo] at org.eclipse.jgit.treewalk.TreeWalk.addTree(TreeWalk.java:468)
[echo] at com.madgag.git.package$RichRevTree.walk(package.scala:68)
[echo] at com.madgag.git.package$.allBlobsUnder(package.scala:215)
[echo] at com.madgag.git.bfg.cleaner.protection.ProtectedObjectCensus$$anonfun$6.apply(ProtectedObjectCensus.scala:79)
[echo] at com.madgag.git.bfg.cleaner.protection.ProtectedObjectCensus$$anonfun$6.apply(ProtectedObjectCensus.scala:79)
[echo] at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)
[echo] at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)
[echo] at scala.collection.Iterator$class.foreach(Iterator.scala:727)
[echo] at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
[echo] at scala.collection.MapLike$DefaultKeySet.foreach(MapLike.scala:174)
[echo] at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:251)
[echo] at scala.collection.AbstractTraversable.flatMap(Traversable.scala:105)
[echo] at com.madgag.git.bfg.cleaner.protection.ProtectedObjectCensus$.apply(ProtectedObjectCensus.scala:79)
[echo] at com.madgag.git.bfg.cli.CLIConfig.objectProtection$lzycompute(CLIConfig.scala:143)
[echo] at com.madgag.git.bfg.cli.CLIConfig.objectProtection(CLIConfig.scala:143)
[echo] at com.madgag.git.bfg.cli.Main$$anonfun$1.apply(Main.scala:57)
[echo] at com.madgag.git.bfg.cli.Main$$anonfun$1.apply(Main.scala:34)
[echo] at scala.Option.map(Option.scala:145)
[echo] at com.madgag.git.bfg.cli.Main$delayedInit$body.apply(Main.scala:33)
[echo] at scala.Function0$class.apply$mcV$sp(Function0.scala:40)
[echo] at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
[echo] at scala.App$$anonfun$main$1.apply(App.scala:71)
[echo] at scala.App$$anonfun$main$1.apply(App.scala:71)
[echo] at scala.collection.immutable.List.foreach(List.scala:318)
[echo] at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:32)
[echo] at scala.App$class.main(App.scala:71)
[echo] at com.madgag.git.bfg.cli.Main$.main(Main.scala:27)
[echo] at com.madgag.git.bfg.cli.Main.main(Main.scala) [echo] Exception in thread "main" java.lang.NullPointerException
[echo] at org.eclipse.jgit.internal.storage.file.UnpackedObjectCache$Table.index(UnpackedObjectCache.java:146)
[echo] at org.eclipse.jgit.internal.storage.file.UnpackedObjectCache$Table.contains(UnpackedObjectCache.java:109)
[echo] at org.eclipse.jgit.internal.storage.file.UnpackedObjectCache.isUnpacked(UnpackedObjectCache.java:64)
[echo] at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openObject1(ObjectDirectory.java:359)
[echo] at org.eclipse.jgit.internal.storage.file.FileObjectDatabase.openObjectImpl1(FileObjectDatabase.java:173)
[echo] at org.eclipse.jgit.internal.storage.file.FileObjectDatabase.openObject(FileObjectDatabase.java:158)
[echo] at org.eclipse.jgit.internal.storage.file.WindowCursor.open(WindowCursor.java:145)
[echo] at org.eclipse.jgit.treewalk.CanonicalTreeParser.reset(CanonicalTreeParser.java:201)
[echo] at org.eclipse.jgit.treewalk.TreeWalk.parserFor(TreeWalk.java:984)
[echo] at org.eclipse.jgit.treewalk.TreeWalk.addTree(TreeWalk.java:468)
[echo] at com.madgag.git.package$RichRevTree.walk(package.scala:68)
[echo] at com.madgag.git.package$.allBlobsUnder(package.scala:215)
[echo] at com.madgag.git.bfg.cleaner.protection.ProtectedObjectCensus$$anonfun$6.apply(ProtectedObjectCensus.scala:79)
[echo] at com.madgag.git.bfg.cleaner.protection.ProtectedObjectCensus$$anonfun$6.apply(ProtectedObjectCensus.scala:79)
[echo] at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)
[echo] at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)
[echo] at scala.collection.Iterator$class.foreach(Iterator.scala:727)
[echo] at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
[echo] at scala.collection.MapLike$DefaultKeySet.foreach(MapLike.scala:174)
[echo] at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:251)
[echo] at scala.collection.AbstractTraversable.flatMap(Traversable.scala:105)
[echo] at com.madgag.git.bfg.cleaner.protection.ProtectedObjectCensus$.apply(ProtectedObjectCensus.scala:79)
[echo] at com.madgag.git.bfg.cli.CLIConfig.objectProtection$lzycompute(CLIConfig.scala:143)
[echo] at com.madgag.git.bfg.cli.CLIConfig.objectProtection(CLIConfig.scala:143)
[echo] at com.madgag.git.bfg.cli.Main$$anonfun$1.apply(Main.scala:57)
[echo] at com.madgag.git.bfg.cli.Main$$anonfun$1.apply(Main.scala:34)
[echo] at scala.Option.map(Option.scala:145)
[echo] at com.madgag.git.bfg.cli.Main$delayedInit$body.apply(Main.scala:33)
[echo] at scala.Function0$class.apply$mcV$sp(Function0.scala:40)
[echo] at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
[echo] at scala.App$$anonfun$main$1.apply(App.scala:71)
[echo] at scala.App$$anonfun$main$1.apply(App.scala:71)
[echo] at scala.collection.immutable.List.foreach(List.scala:318)
[echo] at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:32)
[echo] at scala.App$class.main(App.scala:71)
[echo] at com.madgag.git.bfg.cli.Main$.main(Main.scala:27)
[echo] at com.madgag.git.bfg.cli.Main.main(Main.scala)
here is the command line used to launch BFG.
java -jar /home/talend/talend-svn-git-migration/bfg-1.11.1.jar --strip-blobs-bigger-than 1M --protect-blobs-from branch-5_0,branch-5_1,branch-5_2,branch-5_3,branch-5_4,master,release-5_0_0,release-5_0_1,release-5_0_2,release-5_0_3,release-5_1_0,release-5_1_1,release-5_1_2,release-5_1_3,release-5_2_0,release-5_2_1,release-5_2_2,release-5_2_3,release-5_3_0,release-5_3_1,release-5_3_2,release-5_4_0,release-5_4_1
Metadata
Metadata
Assignees
Labels
No labels